From 226a88b06459eba636c1abcb5824b69dfa7ac659 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Thu, 31 May 2018 23:45:07 -0400 Subject: [PATCH] Add state to initial setup --- NodeInstance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NodeInstance.py b/NodeInstance.py index a336ca82..0f91b4ff 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -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]