From b84f6ff62e1c552f3dbb17dc8fee390ac41db160 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 2 Jun 2018 17:00:49 -0400 Subject: [PATCH] Forgot array bit --- VMInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VMInstance.py b/VMInstance.py index 5db06982..3aba1279 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -133,7 +133,7 @@ class VMInstance: # Receive the migration from another host (wait until VM is running) def receive_migrate(self): while True: - if self.dom == None or self.dom.state() != libvirt.VIR_DOMAIN_RUNNING: + if self.dom == None or self.dom.state()[0] != libvirt.VIR_DOMAIN_RUNNING: try: time.sleep(0.2) print("derp")