From 05eae0f21feaa764b63b51cf2161e2147e8db328 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 15 Nov 2022 08:49:04 +0100 Subject: [PATCH] cleanup validate_cpu_conf Signed-off-by: Thomas Lamprecht --- PVE/QemuServer/CPUConfig.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/PVE/QemuServer/CPUConfig.pm b/PVE/QemuServer/CPUConfig.pm index ff00d566..025c7e75 100644 --- a/PVE/QemuServer/CPUConfig.pm +++ b/PVE/QemuServer/CPUConfig.pm @@ -192,11 +192,8 @@ sub parse_phys_bits { PVE::JSONSchema::register_format('pve-cpu-conf', $cpu_fmt, \&validate_cpu_conf); sub validate_cpu_conf { my ($cpu) = @_; - - # required, but can't be forced in schema since it's encoded in section - # header for custom models + # 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);