Try to stop this looping forever
This commit is contained in:
parent
e10e1a0bc5
commit
1e4aadc989
|
@ -216,7 +216,7 @@ class VMInstance:
|
||||||
if self.dom == None or self.state == 'migrate':
|
if self.dom == None or self.state == 'migrate':
|
||||||
continue
|
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
|
break
|
||||||
|
|
||||||
if self.dom.state()[0] == libvirt.VIR_DOMAIN_RUNNING:
|
if self.dom.state()[0] == libvirt.VIR_DOMAIN_RUNNING:
|
||||||
|
|
Loading…
Reference in New Issue