From a31a53c8299a6d7dfa899bfecd4ae050f95915a1 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 13 Jun 2018 12:08:11 -0400 Subject: [PATCH] Don't stupidly try to flush other nodes --- NodeInstance.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/NodeInstance.py b/NodeInstance.py index d3b2e54a..b4b6f99f 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -60,10 +60,11 @@ class NodeInstance(): self.domain_state = 'unknown' # 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() + if self.name == self.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))