mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-15 04:20:17 +00:00
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 <d.csapak@proxmox.com>
This commit is contained in:
parent
75b51053cc
commit
51153f86ce
@ -4922,10 +4922,8 @@ sub vm_start {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (!$statefile && (!defined($conf->{balloon}) || $conf->{balloon})) {
|
vm_mon_cmd_nocheck($vmid, "balloon", value => $conf->{balloon}*1024*1024)
|
||||||
vm_mon_cmd_nocheck($vmid, "balloon", value => $conf->{balloon}*1024*1024)
|
if !$statefile && $conf->{balloon};
|
||||||
if $conf->{balloon};
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach my $opt (keys %$conf) {
|
foreach my $opt (keys %$conf) {
|
||||||
next if $opt !~ m/^net\d+$/;
|
next if $opt !~ m/^net\d+$/;
|
||||||
|
Loading…
Reference in New Issue
Block a user