From 1d682951721ae83399399ff54888964e631e6297 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 18 Feb 2019 10:45:16 +0100 Subject: [PATCH] memory: fix automatic num amapping when no numaX config options were present we returned the hash as a list instead of a hash reference... Signed-off-by: Wolfgang Bumiller --- 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 aac4cf4..f25135a 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.39.2