[pve-devel] [PATCH v2 ha-manager 08/11] refactor: check_running was moved to PVE::QemuConfig

Stefan Reiter s.reiter at proxmox.com
Mon Oct 28 12:59:20 CET 2019


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

diff --git a/src/PVE/HA/Resources/PVEVM.pm b/src/PVE/HA/Resources/PVEVM.pm
index 0a37cf6..3a4c07a 100644
--- a/src/PVE/HA/Resources/PVEVM.pm
+++ b/src/PVE/HA/Resources/PVEVM.pm
@@ -123,7 +123,7 @@ sub check_running {
 
     my $nodename = $haenv->nodename();
 
-    if (PVE::QemuServer::check_running($vmid, 1, $nodename)) {
+    if (PVE::QemuConfig::check_running($vmid, 1, $nodename)) {
 	# do not count VMs which are suspended for a backup job as running
 	my $conf = PVE::QemuConfig->load_config($vmid, $nodename);
 	if (defined($conf->{lock}) && $conf->{lock} eq 'backup') {
-- 
2.20.1





More information about the pve-devel mailing list