From 8fe689e7fdcf60e7d2a343576213bc4567652e5d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 12 Jan 2015 15:04:31 +0100 Subject: [PATCH] fix test for ballon hotplug --- PVE/QemuServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 702d7972..55d3e0ec 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3700,8 +3700,8 @@ sub vmconfig_hotplug_pending { qemu_cpu_hotplug($vmid, $conf, $value); } elsif ($opt eq 'balloon') { # enable/disable balloning device is not hotpluggable - my $old_balloon_enabled = !defined($conf->{balloon}) || $conf->{balloon}; - my $new_balloon_enabled = !defined($conf->{pending}->{balloon}) || $conf->{pending}->{balloon}; + my $old_balloon_enabled = !!(!defined($conf->{balloon}) || $conf->{balloon}); + my $new_balloon_enabled = !!(!defined($conf->{pending}->{balloon}) || $conf->{pending}->{balloon}); die "skip\n" if $old_balloon_enabled != $new_balloon_enabled; # allow manual ballooning if shares is set to zero -- 2.39.5