From b7c7b5f647a3781f0e12a60149b4a896c1086025 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 6 Jun 2018 21:28:58 -0400 Subject: [PATCH] Update variable name to match --- NodeInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeInstance.py b/NodeInstance.py index dae52dd1..2a3e5ba0 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -102,7 +102,7 @@ class NodeInstance(): most_memfree = memfree target_hypervisor = hypervisor - if least_host == None: + if target_hypervisor == None: print('>>> Failed to find migration target for VM "{}"; shutting down.'.format(dom_uuid)) transaction = self.zk.transaction() transaction.set_data('/domains/{}/state'.format(dom_uuid), 'shutdown'.encode('ascii'))