This commit is contained in:
Joshua Boniface 2018-06-16 23:27:26 -04:00
parent b1e77f6a20
commit 7dac0df58a
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ def fenceNode(node_name, zk):
# Wait 5 seconds
time.sleep(5)
# Get the state
node_daemon_state = self.zk.get('/nodes/{}/daemonstate'.format(node_name))[0].decode('ascii')
node_daemon_state = zk.get('/nodes/{}/daemonstate'.format(node_name))[0].decode('ascii')
# Is it still 'dead'
if node_daemon_state == 'dead':
failcount += 1