[pve-devel] [RFC PATCH qemu-server 3/7] memory: fix implicit host numa map return type

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Dec 20 12:49:22 CET 2016


---
 PVE/QemuServer/Memory.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer/Memory.pm b/PVE/QemuServer/Memory.pm
index e2086cc..c53909e 100644
--- a/PVE/QemuServer/Memory.pm
+++ b/PVE/QemuServer/Memory.pm
@@ -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 {
-- 
2.1.4





More information about the pve-devel mailing list