Fix calling name
This commit is contained in:
parent
8eb91a4ec3
commit
79b5c41abd
|
@ -104,7 +104,7 @@ class NodeInstance(threading.Thread):
|
||||||
|
|
||||||
# Remove any non-running VMs from our list
|
# Remove any non-running VMs from our list
|
||||||
for domain in self.domain_list:
|
for domain in self.domain_list:
|
||||||
dom = pvcdomf.lookupByUUID(domain)
|
dom = pvcf.lookupByUUID(domain)
|
||||||
if dom == None:
|
if dom == None:
|
||||||
self.domain_list.remove(domain)
|
self.domain_list.remove(domain)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -19,7 +19,7 @@ class VMInstance:
|
||||||
self.inmigrate = False
|
self.inmigrate = False
|
||||||
self.inreceive = False
|
self.inreceive = False
|
||||||
|
|
||||||
self.dom = pvcdomf.lookupByUUID(self.domuuid)
|
self.dom = pvcf.lookupByUUID(self.domuuid)
|
||||||
|
|
||||||
# Watch for changes to the hypervisor field in Zookeeper
|
# Watch for changes to the hypervisor field in Zookeeper
|
||||||
@zk.DataWatch(self.zkey + '/hypervisor')
|
@zk.DataWatch(self.zkey + '/hypervisor')
|
||||||
|
@ -150,7 +150,7 @@ class VMInstance:
|
||||||
print('>>> %s - Receiving migration' % self.domuuid)
|
print('>>> %s - Receiving migration' % self.domuuid)
|
||||||
self.inreceive = True
|
self.inreceive = True
|
||||||
while True:
|
while True:
|
||||||
self.dom = pvcdomf.lookupByUUID(self.domuuid)
|
self.dom = pvcf.lookupByUUID(self.domuuid)
|
||||||
if self.dom == None:
|
if self.dom == None:
|
||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue