Make flush/unflush happen after the rest of the keepalive

This commit is contained in:
Joshua Boniface 2018-06-11 20:33:06 -04:00
parent f58784f7b5
commit d66fbe556f
1 changed files with 7 additions and 6 deletions

View File

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