From 51153f86ce68572e522a8c474c2106028e95ae5d Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 14 May 2018 14:03:05 +0200 Subject: [PATCH] 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 --- PVE/QemuServer.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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+$/; -- 2.39.2