Sleep elsewhere
This commit is contained in:
parent
8da9073f68
commit
765bad425c
|
@ -14,7 +14,6 @@ class VMInstance:
|
||||||
self.hypervisor = None
|
self.hypervisor = None
|
||||||
self.state = None
|
self.state = None
|
||||||
self.dom = None
|
self.dom = None
|
||||||
time.sleep(0.5)
|
|
||||||
|
|
||||||
# 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')
|
||||||
|
|
1
pvcd.py
1
pvcd.py
|
@ -84,6 +84,7 @@ def updatenodes(new_node_list):
|
||||||
|
|
||||||
@zk.ChildrenWatch('/domains')
|
@zk.ChildrenWatch('/domains')
|
||||||
def updatedomains(new_domain_list):
|
def updatedomains(new_domain_list):
|
||||||
|
time.sleep(0.5)
|
||||||
domain_list = new_domain_list
|
domain_list = new_domain_list
|
||||||
print('Domain list: %s' % domain_list)
|
print('Domain list: %s' % domain_list)
|
||||||
for domain in domain_list:
|
for domain in domain_list:
|
||||||
|
|
Loading…
Reference in New Issue