Wrong key name

This commit is contained in:
Joshua Boniface 2018-06-06 21:28:02 -04:00
parent 90fa2e6b5e
commit 55f52bb3d7
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class NodeInstance():
for dom_uuid in self.domain_list: for dom_uuid in self.domain_list:
most_memfree = 0 most_memfree = 0
hypervisor_list = self.zk.get_children('/nodes') 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: for hypervisor in hypervisor_list:
state = self.zk.get('/nodes/{}/state'.format(hypervisor))[0].decode('ascii') state = self.zk.get('/nodes/{}/state'.format(hypervisor))[0].decode('ascii')
if state != 'start' or hypervisor == current_hypervisor: if state != 'start' or hypervisor == current_hypervisor: