More bugs

This commit is contained in:
Joshua Boniface 2018-05-31 23:40:21 -04:00
parent 70268cc154
commit bd4329b09f
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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())