From 765bad425c34aea6fe9c799c7a6ffd88dcc3197e Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 2 Jun 2018 00:46:06 -0400 Subject: [PATCH] Sleep elsewhere --- VMInstance.py | 1 - pvcd.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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: