From 7dac0df58af23eaeb7b65353c7bdd46066989830 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 16 Jun 2018 23:27:26 -0400 Subject: [PATCH] Bug --- pvc/NodeInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvc/NodeInstance.py b/pvc/NodeInstance.py index 52d38b59..d6ae8a50 100644 --- a/pvc/NodeInstance.py +++ b/pvc/NodeInstance.py @@ -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