refactor: vm_mon_cmd is now Monitor::mon_cmd

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter 2019-11-19 12:23:51 +01:00 committed by Thomas Lamprecht
parent cd3b6b0177
commit 7a108020b3

View File

@ -18,6 +18,7 @@ use PVE::Network;
use PVE::Cluster qw(cfs_read_file); use PVE::Cluster qw(cfs_read_file);
use PVE::Storage; use PVE::Storage;
use PVE::QemuServer; use PVE::QemuServer;
use PVE::QemuServer::Monitor;
use PVE::LXC; use PVE::LXC;
use PVE::LXC::Config; use PVE::LXC::Config;
use PVE::RPCEnvironment; use PVE::RPCEnvironment;
@ -154,7 +155,7 @@ sub auto_balloning {
next if $target == $current; # no need to change next if $target == $current; # no need to change
$log->("BALLOON $vmid to $target (%d)\n", $target - $current); $log->("BALLOON $vmid to $target (%d)\n", $target - $current);
eval { PVE::QemuServer::vm_mon_cmd($vmid, "balloon", value => $target) }; eval { PVE::QemuServer::Monitor::mon_cmd($vmid, "balloon", value => $target) };
warn $@ if $@; warn $@ if $@;
} }
} }