Add forgotten time flag to sleep
This commit is contained in:
parent
eef9bb6b1d
commit
c517847c54
2
pvc.py
2
pvc.py
|
@ -410,7 +410,7 @@ def flush_host(node, wait):
|
||||||
|
|
||||||
if wait == True:
|
if wait == True:
|
||||||
while True:
|
while True:
|
||||||
sleep(1)
|
time.sleep(1)
|
||||||
node_state = zk_conn.get('/nodes/{}/state'.format(node_name))[0].decode('ascii')
|
node_state = zk_conn.get('/nodes/{}/state'.format(node_name))[0].decode('ascii')
|
||||||
if node_state == "flushed":
|
if node_state == "flushed":
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue