From: Dominik Csapak Date: Mon, 14 May 2018 12:03:05 +0000 (+0200) Subject: cleanup balloon after start call X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=51153f86ce68572e522a8c474c2106028e95ae5d;ds=sidebyside cleanup balloon after start call the not definedness check is unecessary here, since it does not do anything then, and to check balloon twice is also not necessary Signed-off-by: Dominik Csapak --- diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 2a07bce..648a5f8 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -4922,10 +4922,8 @@ sub vm_start { } } else { - if (!$statefile && (!defined($conf->{balloon}) || $conf->{balloon})) { - vm_mon_cmd_nocheck($vmid, "balloon", value => $conf->{balloon}*1024*1024) - if $conf->{balloon}; - } + vm_mon_cmd_nocheck($vmid, "balloon", value => $conf->{balloon}*1024*1024) + if !$statefile && $conf->{balloon}; foreach my $opt (keys %$conf) { next if $opt !~ m/^net\d+$/;