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 <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-02-18 10:45:16 +01:00
parent ca0ef6b148
commit 1d68295172

View 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{