Fix spurious attempts to manage nonexistent VM instances

This commit is contained in:
Joshua Boniface 2018-06-04 00:51:11 -04:00
parent b577ad1771
commit 7b427a8730
1 changed files with 1 additions and 1 deletions

View File

@ -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