From 4cc1efa6150f8227c3004a3227ad91d66c232b33 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Mon, 2 Mar 2015 16:03:22 +0100 Subject: [PATCH] bugfix : allow manual balloning if shares = 0 Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 9847254b..f46302ef 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3865,7 +3865,7 @@ sub vmconfig_hotplug_pending { die "skip\n" if $old_balloon_enabled != $new_balloon_enabled; # allow manual ballooning if shares is set to zero - if (!(defined($conf->{shares}) && ($conf->{shares} == 0))) { + if ((defined($conf->{shares}) && ($conf->{shares} == 0))) { my $balloon = $conf->{pending}->{balloon} || $conf->{memory} || $defaults->{memory}; vm_mon_cmd($vmid, "balloon", value => $balloon*1024*1024); }