]> git.proxmox.com Git - qemu-server.git/commitdiff
memory: fix automatic num amapping
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 18 Feb 2019 09:45:16 +0000 (10:45 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 18 Feb 2019 09:45:17 +0000 (10:45 +0100)
when no numaX config options were present we returned the
hash as a list instead of a hash reference...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/QemuServer/Memory.pm

index aac4cf429e314e0a576bc727cb276647cd15a1ed..f25135a0995b8b25f7cb0ce4868f2b1633b4039e 100644 (file)
@@ -34,7 +34,7 @@ sub get_numa_guest_to_host_map {
     }
     return $map if %$map;
     my $sockets = $conf->{sockets} || 1;
-    return map { $_ => $_ } (0..($sockets-1));
+    return {map { $_ => $_ } (0..($sockets-1))};
 }
 
 sub foreach_dimm{