mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-25 00:24:15 +00:00
fix bug #389: avoid error if balloon is undefined
This commit is contained in:
parent
a3dbf3b9b5
commit
6e46ac079f
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user