Fix
This commit is contained in:
parent
bf1afbd7eb
commit
00b0aa0031
6
pvcd.py
6
pvcd.py
|
@ -79,10 +79,12 @@ def updatenodes(new_node_list):
|
||||||
t_node[node].start()
|
t_node[node].start()
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
|
|
||||||
domain_list = zk.get_children('/domains')
|
@zk.ChildrenWatch('/domains')
|
||||||
|
def updatedomains(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:
|
||||||
|
if not domain in s_domain:
|
||||||
s_domain[domain] = VMInstance.VMInstance(domain, zk, t_node[myhostname]);
|
s_domain[domain] = VMInstance.VMInstance(domain, zk, t_node[myhostname]);
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue