From d66fbe556f25ac5d7a06d938c9a9d2c4181509ed Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 11 Jun 2018 20:33:06 -0400 Subject: [PATCH] Make flush/unflush happen after the rest of the keepalive --- NodeInstance.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/NodeInstance.py b/NodeInstance.py index 0eab2287..03700d31 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -221,12 +221,6 @@ class NodeInstance(): except: pass - # toggle state management of this node - if self.domain_state == 'flush': - self.flush() - if self.domain_state == 'unflush': - self.unflush() - # Set our information in zookeeper self.name = conn.getHostname() self.cpucount = conn.getCPUMap()[0] @@ -311,3 +305,10 @@ class NodeInstance(): ansiiprint.echo('{}Active nodes:{} {}'.format(ansiiprint.bold(), ansiiprint.end(), ' '.join(self.active_node_list)), '', 'c') ansiiprint.echo('{}Inactive nodes:{} {}'.format(ansiiprint.bold(), ansiiprint.end(), ' '.join(self.inactive_node_list)), '', 'c') ansiiprint.echo('{}Flushed nodes:{} {}'.format(ansiiprint.bold(), ansiiprint.end(), ' '.join(self.flushed_node_list)), '', 'c') + + # toggle state management of this node + if self.domain_state == 'flush': + self.flush() + if self.domain_state == 'unflush': + self.unflush() +