More bugs
This commit is contained in:
parent
70268cc154
commit
bd4329b09f
|
@ -23,6 +23,9 @@ class NodeInstance(threading.Thread):
|
|||
def getname():
|
||||
return self.name
|
||||
|
||||
def getstate():
|
||||
return self.state
|
||||
|
||||
# Update value functions
|
||||
def updatenodelist(node_list):
|
||||
self.node_list = node_list
|
||||
|
|
6
pvcd.py
6
pvcd.py
|
@ -80,10 +80,10 @@ def updatenodes(new_node_list):
|
|||
if t_node[node].name == myhostname:
|
||||
t_node[node].start()
|
||||
|
||||
node_status = t_node[node].getstatus()
|
||||
if node_status == 'start':
|
||||
node_state = t_node[node].getstate()
|
||||
if node_state == 'start':
|
||||
active_node_list.append(t_node[node].getname())
|
||||
elif node_status == 'flush':
|
||||
elif node_state == 'flush':
|
||||
flushed_node_list.append(t_node[node].getname())
|
||||
else:
|
||||
inactive_node_list.append(t_node[node].getname())
|
||||
|
|
Loading…
Reference in New Issue