From 19561faa5ee6f100f2be71b55225dd160c486fb2 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 6 Jun 2018 21:31:20 -0400 Subject: [PATCH] Define target_hypervisor variable --- NodeInstance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/NodeInstance.py b/NodeInstance.py index 2a3e5ba0..d02fc262 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -90,6 +90,7 @@ class NodeInstance(): print('>>> Flushing node {} of running VMs.'.format(self.name)) for dom_uuid in self.domain_list: most_memfree = 0 + target_hypervisor = None hypervisor_list = self.zk.get_children('/nodes') current_hypervisor = self.zk.get('/domains/{}/hypervisor'.format(dom_uuid))[0].decode('ascii') for hypervisor in hypervisor_list: