Check
This commit is contained in:
parent
77c5c2ccf7
commit
e498d81a8f
1
pvcd.py
1
pvcd.py
|
@ -51,6 +51,7 @@ atexit.register(cleanup)
|
|||
# Check if our node exists in Zookeeper, and create it if not
|
||||
mynodestring = '/nodes/%s' % myhostname
|
||||
if not zk.exists('%s' + mynodestring):
|
||||
print("derp")
|
||||
zk.create('%s' % mynodestring, 'hypervisor'.encode('ascii'))
|
||||
zk.create('%s/state' % mynodestring, 'stop'.encode('ascii'))
|
||||
zk.create('%s/cpucount' % mynodestring, '0'.encode('ascii'))
|
||||
|
|
Loading…
Reference in New Issue