Skip to content

Commit

Permalink
Minor bugfix in getstate function
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Nov 26, 2015
1 parent 4863ff9 commit 20ebb8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IM/InfrastructureManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20ebb8c

Please sign in to comment.