Forgot array bit
This commit is contained in:
parent
3e24eab61e
commit
b84f6ff62e
|
@ -133,7 +133,7 @@ class VMInstance:
|
||||||
# Receive the migration from another host (wait until VM is running)
|
# Receive the migration from another host (wait until VM is running)
|
||||||
def receive_migrate(self):
|
def receive_migrate(self):
|
||||||
while True:
|
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:
|
try:
|
||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
print("derp")
|
print("derp")
|
||||||
|
|
Loading…
Reference in New Issue