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