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:
Thomas Lamprecht 2025-04-06 19:00:29 +02:00
parent 9c419d83dd
commit cc5dc71a7a

View File

@ -46,11 +46,10 @@ __PACKAGE__->register_method({
type => 'string',
description => "The machine version.",
},
description => {
changes => {
type => 'string',
optional => 1,
description => 'Notable changes that version introduces, only used for +pveX"
." versions.',
description => 'Notable changes of a version, currently only set for +pveX versions.',
},
},
},
@ -74,7 +73,7 @@ __PACKAGE__->register_method({
};
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;
}