From 0b9b803493fa507f17d4aff6f11b95c55ffe6ac5 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Tue, 12 Jun 2018 22:07:40 -0400 Subject: [PATCH] Revert "Another fun bug" This reverts commit 80bd9771f3a6b465ee7cd538c7f5139a17c79106. --- NodeInstance.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/NodeInstance.py b/NodeInstance.py index 1df8e086..0a3f07bb 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -59,12 +59,11 @@ class NodeInstance(): except AttributeError: self.domain_state = 'unknown' - if self.name == self.this_node: - # toggle state management of this node - if self.domain_state == 'flush' and self.inflush == False: - self.flush() - if self.domain_state == 'unflush' and self.inflush == False: - self.unflush() + # toggle state management of this node + if self.domain_state == 'flush' and self.inflush == False: + self.flush() + if self.domain_state == 'unflush' and self.inflush == False: + self.unflush() @zk.DataWatch('/nodes/{}/memfree'.format(self.name))