]> git.proxmox.com Git - qemu-server.git/commitdiff
api: create vm: fix missing import for serializing machine type
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 Apr 2024 10:23:33 +0000 (12:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 Apr 2024 10:27:30 +0000 (12:27 +0200)
The machine handling was transformed into a full fledged property
string with a (sub) format, but the single call-site for print_machine
was seemingly not tested, as this could have never worked due to a
missing import of the print_property_string helper.

Fixes: 8082eb8 ("config: define machine schema as property-string")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer/Machine.pm

index 3d92c96da4e13eb39b89525521f3b8654597dd91..cc92e7e6771d2e8dc237cbbc36a465dac3b82bc1 100644 (file)
@@ -5,7 +5,7 @@ use warnings;
 
 use PVE::QemuServer::Helpers;
 use PVE::QemuServer::Monitor;
-use PVE::JSONSchema qw(get_standard_option parse_property_string);
+use PVE::JSONSchema qw(get_standard_option parse_property_string print_property_string);
 
 # Bump this for VM HW layout changes during a release (where the QEMU machine
 # version stays the same)