From 20ebb8c81da9a6516aee2acb4371a670159df92f Mon Sep 17 00:00:00 2001 From: micafer Date: Thu, 26 Nov 2015 13:09:46 +0100 Subject: [PATCH] Minor bugfix in getstate function --- IM/InfrastructureManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IM/InfrastructureManager.py b/IM/InfrastructureManager.py index e3c83b699..b9277b6a6 100755 --- a/IM/InfrastructureManager.py +++ b/IM/InfrastructureManager.py @@ -801,9 +801,9 @@ def GetInfrastructureState(inf_id, auth): state = None vm_states = {} for vm in sel_inf.get_vm_list(): - # First try yo update the status of the VM + # First try to update the status of the VM vm.update_status(auth) - vm_states[vm.id] = vm.state + vm_states[str(vm.im_id)] = vm.state if vm.state == VirtualMachine.FAILED: state = VirtualMachine.FAILED break