Try to stop this looping forever

This commit is contained in:
Joshua Boniface 2018-06-11 13:22:48 -04:00
parent e10e1a0bc5
commit 1e4aadc989
1 changed files with 1 additions and 1 deletions

View File

@ -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: