From 1e4aadc989e3e4de8eb6779bd43c3ba616e96a84 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 11 Jun 2018 13:22:48 -0400 Subject: [PATCH] Try to stop this looping forever --- VMInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VMInstance.py b/VMInstance.py index 5fc570f1..59a086f2 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -216,7 +216,7 @@ class VMInstance: if self.dom == None or self.state == 'migrate': continue - if self.dom.state()[0] == libvirt.VIR_DOMAIN_RUNNING or self.state != 'migrate': + if self.dom.state()[0] == libvirt.VIR_DOMAIN_RUNNING and self.state != 'migrate': break if self.dom.state()[0] == libvirt.VIR_DOMAIN_RUNNING: