Another fun bug
This commit is contained in:
parent
75efefada3
commit
80bd9771f3
|
@ -59,11 +59,12 @@ class NodeInstance():
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
self.domain_state = 'unknown'
|
self.domain_state = 'unknown'
|
||||||
|
|
||||||
# toggle state management of this node
|
if self.name == self.this_node:
|
||||||
if self.domain_state == 'flush' and self.inflush == False:
|
# toggle state management of this node
|
||||||
self.flush()
|
if self.domain_state == 'flush' and self.inflush == False:
|
||||||
if self.domain_state == 'unflush' and self.inflush == False:
|
self.flush()
|
||||||
self.unflush()
|
if self.domain_state == 'unflush' and self.inflush == False:
|
||||||
|
self.unflush()
|
||||||
|
|
||||||
|
|
||||||
@zk.DataWatch('/nodes/{}/memfree'.format(self.name))
|
@zk.DataWatch('/nodes/{}/memfree'.format(self.name))
|
||||||
|
|
Loading…
Reference in New Issue