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