This commit is contained in:
Joshua Boniface 2018-05-31 23:03:23 -04:00
parent 77c5c2ccf7
commit e498d81a8f
1 changed files with 1 additions and 0 deletions

View File

@ -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'))