Don't stupidly try to flush other nodes
This commit is contained in:
parent
7bb72dc732
commit
a31a53c829
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue