mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CA-153178: Fixed power state
This commit is contained in:
parent
a109726218
commit
e83c05122c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user