]> git.proxmox.com Git - qemu-server.git/commitdiff
cleanup validate_cpu_conf
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 15 Nov 2022 07:49:04 +0000 (08:49 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 15 Nov 2022 07:49:04 +0000 (08:49 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer/CPUConfig.pm

index ff00d566304041292f6265db71c5410b5c012354..025c7e75834f9ff01cfb6fcc83bc1de5fb03ccdd 100644 (file)
@@ -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);