]> git.proxmox.com Git - qemu-server.git/commitdiff
validate_cpu_conf: return config
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 12 Aug 2020 11:40:12 +0000 (13:40 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 12 Aug 2020 11:54:38 +0000 (13:54 +0200)
as parse_property_string expects it to.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Reviewed-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/QemuServer/CPUConfig.pm

index 4351cfd3b4e81c9b05fc6c30a853c276bdaed052..66624fb0de709fd623355da231a269358cc87799 100644 (file)
@@ -191,6 +191,8 @@ sub validate_cpu_conf {
     # required, but can't be forced in schema since it's encoded in section
     # header for custom models
     die "CPU is missing cputype\n" if !$cpu->{cputype};
+
+    return $cpu;
 }
 PVE::JSONSchema::register_format('pve-vm-cpu-conf', $cpu_fmt, \&validate_vm_cpu_conf);
 sub validate_vm_cpu_conf {