From 365ad6709a6fad2dd7807e5d815398112aeedb1a Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Thu, 31 May 2018 23:48:12 -0400 Subject: [PATCH] Add state set --- NodeInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeInstance.py b/NodeInstance.py index 0f91b4ff..d252e5cf 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -64,11 +64,11 @@ class NodeInstance(threading.Thread): if conn == None: print('Failed to open connection to %s' % libvirt_name) exit(1) - # Gather data about hypervisor self.name = conn.getHostname() self.cpucount = conn.getCPUMap()[0] + self.state = 'start' self.zk.set(self.zkey + '/state', 'start'.encode('ascii')) self.zk.set(self.zkey + '/cpucount', str(self.cpucount).encode('ascii')) print("Node hostname: %s" % self.name)