From 7b427a87308a289b276807826fa05b543dfa9263 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 4 Jun 2018 00:51:11 -0400 Subject: [PATCH] Fix spurious attempts to manage nonexistent VM instances --- NodeInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeInstance.py b/NodeInstance.py index b8189850..2bf3021f 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -99,7 +99,7 @@ class NodeInstance(threading.Thread): while True: # Toggle state management of all VMs for domain, instance in self.s_domain.items(): - if instance.inshutdown == False: + if instance.inshutdown == False and domain in self.domain_list: instance.manage_vm_state() # Remove any non-running VMs from our list