Sleep elsewhere

This commit is contained in:
Joshua Boniface 2018-06-02 00:46:06 -04:00
parent 8da9073f68
commit 765bad425c
2 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,6 @@ class VMInstance:
self.hypervisor = None
self.state = None
self.dom = None
time.sleep(0.5)
# Watch for changes to the hypervisor field in Zookeeper
@zk.DataWatch(self.zkey + '/hypervisor')

View File

@ -84,6 +84,7 @@ def updatenodes(new_node_list):
@zk.ChildrenWatch('/domains')
def updatedomains(new_domain_list):
time.sleep(0.5)
domain_list = new_domain_list
print('Domain list: %s' % domain_list)
for domain in domain_list: