From bd4329b09fa16b3d4f12da4b636a55f87eeae474 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Thu, 31 May 2018 23:40:21 -0400 Subject: [PATCH] More bugs --- NodeInstance.py | 3 +++ pvcd.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/NodeInstance.py b/NodeInstance.py index b98de96d..35b6627d 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -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 diff --git a/pvcd.py b/pvcd.py index 67d7cfb9..b9c8f126 100755 --- a/pvcd.py +++ b/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())