diff --git a/VMInstance.py b/VMInstance.py index 15cd6dae..b078857c 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -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') diff --git a/pvcd.py b/pvcd.py index 6566cc15..aa9ee341 100755 --- a/pvcd.py +++ b/pvcd.py @@ -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: