From 43569a32ae907d796d171bf3d5963a62ec0da6aa Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 20 Apr 2024 12:23:33 +0200 Subject: [PATCH] api: create vm: fix missing import for serializing machine type 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 --- PVE/QemuServer/Machine.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer/Machine.pm b/PVE/QemuServer/Machine.pm index 3d92c96..cc92e7e 100644 --- a/PVE/QemuServer/Machine.pm +++ b/PVE/QemuServer/Machine.pm @@ -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) -- 2.39.2