From f8bee525b7f5e7123fc3530459bae95b190a33e0 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Thu, 31 May 2018 23:05:27 -0400 Subject: [PATCH] Bug fixed --- pvcd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvcd.py b/pvcd.py index 64ca1c7d..1b40ca3e 100755 --- a/pvcd.py +++ b/pvcd.py @@ -50,7 +50,7 @@ atexit.register(cleanup) # Check if our node exists in Zookeeper, and create it if not mynodestring = '/nodes/%s' % myhostname -if zk.exists('%s' + mynodestring): +if zk.exists('%s' % mynodestring): print("Node is present in Zookeeper") else: zk.create('%s' % mynodestring, 'hypervisor'.encode('ascii'))