From 86cf3a57ee1802a65624ec527986968d785332a0 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Tue, 12 Jun 2018 22:03:01 -0400 Subject: [PATCH] Another bugfix --- pvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvc.py b/pvc.py index 151cb159..00b4d0ee 100755 --- a/pvc.py +++ b/pvc.py @@ -719,7 +719,7 @@ def migrate_vm(dom_name, dom_uuid, target_hypervisor, force_migrate): for hypervisor in hypervisor_list: daemon_state = zk.get('/nodes/{}/daemonstate'.format(hypervisor))[0].decode('ascii') domain_state = zk.get('/nodes/{}/domainstate'.format(hypervisor))[0].decode('ascii') - if daemon_state != 'start' or domain_state != 'ready' or hypervisor == current_hypervisor: + if daemon_state != 'run' or domain_state != 'ready' or hypervisor == current_hypervisor: continue memfree = int(zk.get('/nodes/{}/memfree'.format(hypervisor))[0].decode('ascii'))