[pve-devel] [PATCH ha-manager 09/11] refactor: vm_qmp_command was moved to PVE::QMP

Stefan Reiter s.reiter at proxmox.com
Mon Oct 28 11:36:41 CET 2019


Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
 src/PVE/HA/Resources/PVEVM.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/PVE/HA/Resources/PVEVM.pm b/src/PVE/HA/Resources/PVEVM.pm
index 3a4c07a..84c23be 100644
--- a/src/PVE/HA/Resources/PVEVM.pm
+++ b/src/PVE/HA/Resources/PVEVM.pm
@@ -11,6 +11,8 @@ BEGIN {
 	import  PVE::QemuConfig;
 	require PVE::QemuServer;
 	import  PVE::QemuServer;
+	require PVE::QMP;
+	import  PVE::QMP;
 	require PVE::API2::Qemu;
 	import  PVE::API2::Qemu;
     }
@@ -128,7 +130,7 @@ sub check_running {
 	my $conf = PVE::QemuConfig->load_config($vmid, $nodename);
 	if (defined($conf->{lock}) && $conf->{lock} eq 'backup') {
 	    my $qmpstatus = eval {
-		PVE::QemuServer::vm_qmp_command($vmid, { execute => 'query-status' })
+		PVE::QMP::vm_qmp_command($vmid, { execute => 'query-status' })
 	    };
 	    warn "$@\n" if $@;
 
-- 
2.20.1





More information about the pve-devel mailing list