]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuServer/CPUConfig.pm
cpu config: fix get_cpu_bitness always reverting to default cpu type
[qemu-server.git] / PVE / QemuServer / CPUConfig.pm
index 97a5e559330ad96e614169b63619ca0feb005bd5..33f7524f59ceadd562f55a1bf72c3d03d38452f4 100644 (file)
@@ -757,7 +757,7 @@ sub get_cpu_bitness {
        my $cpu = PVE::JSONSchema::parse_property_string('pve-vm-cpu-conf', $cpu_prop_str)
            or die "Cannot parse cpu description: $cpu_prop_str\n";
 
-       my $cputype = $cpu->{cputype};
+       $cputype = $cpu->{cputype};
 
        if (my $model = $builtin_models->{$cputype}) {
            $cputype = $model->{'reported-model'};