Another fun bug

This commit is contained in:
Joshua Boniface 2018-06-12 21:46:38 -04:00
parent 75efefada3
commit 80bd9771f3
1 changed files with 6 additions and 5 deletions

View File

@ -59,11 +59,12 @@ class NodeInstance():
except AttributeError:
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:
# 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))