From 55f52bb3d7ab81d6b4209eae8df850afd506d400 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 6 Jun 2018 21:28:02 -0400 Subject: [PATCH] Wrong key name --- NodeInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeInstance.py b/NodeInstance.py index 1291a700..dae52dd1 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -91,7 +91,7 @@ class NodeInstance(): for dom_uuid in self.domain_list: most_memfree = 0 hypervisor_list = self.zk.get_children('/nodes') - current_hypervisor = self.zk.get('/dom_uuids/{}/hypervisor'.format(dom_uuid))[0].decode('ascii') + current_hypervisor = self.zk.get('/domains/{}/hypervisor'.format(dom_uuid))[0].decode('ascii') for hypervisor in hypervisor_list: state = self.zk.get('/nodes/{}/state'.format(hypervisor))[0].decode('ascii') if state != 'start' or hypervisor == current_hypervisor: