Set proper variable name x2

This commit is contained in:
Joshua Boniface 2018-07-17 01:57:39 -04:00
parent eb44381651
commit 68ab7da2aa
1 changed files with 1 additions and 1 deletions

2
pvc.py
View File

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