Fix
This commit is contained in:
parent
3b319fa498
commit
5afb2f7520
4
pvcd.py
4
pvcd.py
|
@ -78,7 +78,9 @@ def updatenodes(new_node_list):
|
||||||
t_node[node].updatenodelist(node_list)
|
t_node[node].updatenodelist(node_list)
|
||||||
else:
|
else:
|
||||||
t_node[node] = NodeInstance.NodeInstance(node, node_list, zk);
|
t_node[node] = NodeInstance.NodeInstance(node, node_list, zk);
|
||||||
t_node[node].start()
|
if node == myhostname:
|
||||||
|
t_node[node].start()
|
||||||
|
time.sleep(0.5)
|
||||||
|
|
||||||
node_state = t_node[node].getstate()
|
node_state = t_node[node].getstate()
|
||||||
print(node_state)
|
print(node_state)
|
||||||
|
|
Loading…
Reference in New Issue