[pve-devel] [PATCH] fix check_running in PVE::QemuServer::Memory::qemu_memory_hotplug

Alexandre Derumier aderumier at odiso.com
Wed Jun 8 11:02:52 CEST 2016


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 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 3c9659c..376beb9 100644
--- a/PVE/QemuServer/Memory.pm
+++ b/PVE/QemuServer/Memory.pm
@@ -53,7 +53,7 @@ sub foreach_reverse_dimm {
 sub qemu_memory_hotplug {
     my ($vmid, $conf, $defaults, $opt, $value) = @_;
 
-    return $value if !check_running($vmid);
+    return $value if !PVE::QemuServer::check_running($vmid);
 
     my $memory = $conf->{memory} || $defaults->{memory};
     $value = $defaults->{memory} if !$value;
-- 
2.1.4



More information about the pve-devel mailing list