fix bug #389: avoid error if balloon is undefined

This commit is contained in:
Dietmar Maurer 2013-05-22 07:15:44 +02:00
parent a3dbf3b9b5
commit 6e46ac079f

View File

@ -958,7 +958,7 @@ __PACKAGE__->register_method({
my $balloon = defined($param->{balloon}) ? $param->{balloon} : $conf->{balloon};
die "balloon value too large (must be smaller than assigned memory)\n"
if $balloon > $maxmem;
if $balloon && $balloon > $maxmem;
}
PVE::Cluster::log_msg('info', $authuser, "update VM $vmid: " . join (' ', @paramarr));