Add forgotten time flag to sleep

This commit is contained in:
Joshua Boniface 2018-07-17 01:51:35 -04:00
parent eef9bb6b1d
commit c517847c54
1 changed files with 1 additions and 1 deletions

2
pvc.py
View File

@ -410,7 +410,7 @@ def flush_host(node, wait):
if wait == True:
while True:
sleep(1)
time.sleep(1)
node_state = zk_conn.get('/nodes/{}/state'.format(node_name))[0].decode('ascii')
if node_state == "flushed":
break