CA-153178: Fixed power state

This commit is contained in:
Mihaela Stoica 2014-12-05 11:10:57 +00:00
parent a109726218
commit e83c05122c

View File

@ -201,9 +201,9 @@ namespace XenAdmin.Model
public vm_power_state power_state
{
get {
return status.StartsWith("Up")
? (status.EndsWith("(paused)") ? vm_power_state.Paused : vm_power_state.Running)
: vm_power_state.Halted;
return status.Contains("Paused")
? vm_power_state.Paused
: status.StartsWith("Up") ? vm_power_state.Running : vm_power_state.Halted;
}
}
}