mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-15 19:59:36 +00:00
api: machine versions: rename description property to changes
Should better denote what this is about, the schema description called it that already anyway. Avoid using a pve specific property name in case we add some changes for the upstream revisions in the future. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9c419d83dd
commit
cc5dc71a7a
@ -46,11 +46,10 @@ __PACKAGE__->register_method({
|
|||||||
type => 'string',
|
type => 'string',
|
||||||
description => "The machine version.",
|
description => "The machine version.",
|
||||||
},
|
},
|
||||||
description => {
|
changes => {
|
||||||
type => 'string',
|
type => 'string',
|
||||||
optional => 1,
|
optional => 1,
|
||||||
description => 'Notable changes that version introduces, only used for +pveX"
|
description => 'Notable changes of a version, currently only set for +pveX versions.',
|
||||||
." versions.',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -74,7 +73,7 @@ __PACKAGE__->register_method({
|
|||||||
};
|
};
|
||||||
|
|
||||||
my $desc = PVE::QemuServer::Machine::get_pve_version_description($version);
|
my $desc = PVE::QemuServer::Machine::get_pve_version_description($version);
|
||||||
$entry->{description} = $desc if defined($desc);
|
$entry->{changes} = $desc if defined($desc);
|
||||||
|
|
||||||
push $to_add->@*, $entry;
|
push $to_add->@*, $entry;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user