mirror of https://github.com/apache/cloudstack.git
bug 12017: when owner host is not in UP state, mark VM state as UNKNOWN
This commit is contained in:
parent
5c0b585aa0
commit
00ffe10b05
|
|
@ -1278,7 +1278,7 @@ public class ApiResponseHelper implements ResponseGenerator {
|
|||
host = ApiDBUtils.findHostById(userVm.getHostId());
|
||||
hosts.put(host.getId(), host);
|
||||
}
|
||||
if (host.getStatus() == com.cloud.host.Status.Alert) {
|
||||
if (host.getStatus() != com.cloud.host.Status.Up) {
|
||||
userVmResponse.setState(VirtualMachine.State.Unknown.toString());
|
||||
} else {
|
||||
userVmResponse.setState(userVm.getState().toString());
|
||||
|
|
|
|||
Loading…
Reference in New Issue