Define target_hypervisor variable

This commit is contained in:
Joshua Boniface 2018-06-06 21:31:20 -04:00
parent b7c7b5f647
commit 19561faa5e
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ class NodeInstance():
print('>>> Flushing node {} of running VMs.'.format(self.name)) print('>>> Flushing node {} of running VMs.'.format(self.name))
for dom_uuid in self.domain_list: for dom_uuid in self.domain_list:
most_memfree = 0 most_memfree = 0
target_hypervisor = None
hypervisor_list = self.zk.get_children('/nodes') hypervisor_list = self.zk.get_children('/nodes')
current_hypervisor = self.zk.get('/domains/{}/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: