More fixes
This commit is contained in:
parent
7bcb2e0b00
commit
9ab02318c6
|
@ -99,6 +99,8 @@ class NodeInstance(threading.Thread):
|
||||||
self.flush()
|
self.flush()
|
||||||
|
|
||||||
def setup_remote_node(self):
|
def setup_remote_node(self):
|
||||||
|
pass
|
||||||
|
|
||||||
@zk.DataWatch(self.zkey + '/state')
|
@zk.DataWatch(self.zkey + '/state')
|
||||||
def watch_state(data, stat):
|
def watch_state(data, stat):
|
||||||
self.state = data.decode('ascii')
|
self.state = data.decode('ascii')
|
||||||
|
|
1
pvcd.py
1
pvcd.py
|
@ -82,6 +82,7 @@ def updatenodes(new_node_list):
|
||||||
t_node[node].start()
|
t_node[node].start()
|
||||||
|
|
||||||
node_state = t_node[node].getstate()
|
node_state = t_node[node].getstate()
|
||||||
|
print(node_state)
|
||||||
if node_state == 'start':
|
if node_state == 'start':
|
||||||
active_node_list.append(t_node[node].getname())
|
active_node_list.append(t_node[node].getname())
|
||||||
elif node_state == 'flush':
|
elif node_state == 'flush':
|
||||||
|
|
Loading…
Reference in New Issue