Bug fixed
This commit is contained in:
parent
a9768559aa
commit
f8bee525b7
2
pvcd.py
2
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'))
|
||||
|
|
Loading…
Reference in New Issue