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 {
|
||||
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+$/;
|
||||
|
Loading…
Reference in New Issue
Block a user