Add state to initial setup

This commit is contained in:
Joshua Boniface 2018-05-31 23:45:07 -04:00
parent 1f2adafc4e
commit 226a88b064
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ class NodeInstance(threading.Thread):
self.zkey = '/nodes/%s' % name
self.zk = zk
self.name = name
self.state = 'stop'
self.stop_thread = threading.Event()
self.node_list = node_list
self.domainlist = []
@ -64,6 +65,7 @@ class NodeInstance(threading.Thread):
print('Failed to open connection to %s' % libvirt_name)
exit(1)
# Gather data about hypervisor
self.name = conn.getHostname()
self.cpucount = conn.getCPUMap()[0]