Don't override flush state on exit
This commit is contained in:
parent
c0c84036c3
commit
eb9ef43957
3
pvcd.py
3
pvcd.py
|
@ -46,7 +46,8 @@ def cleanup():
|
||||||
t_node[myhostname].stop()
|
t_node[myhostname].stop()
|
||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
try:
|
try:
|
||||||
zk.set('/nodes/' + myhostname + '/state', 'stop'.encode('ascii'))
|
if t_node[myhostname].getstate() != 'flush':
|
||||||
|
zk.set('/nodes/' + myhostname + '/state', 'stop'.encode('ascii'))
|
||||||
zk.stop()
|
zk.stop()
|
||||||
zk.close()
|
zk.close()
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue