mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-04 01:07:58 +00:00
cleanup validate_cpu_conf
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
74fe3d9a7b
commit
05eae0f21f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user