Revision afa0fca4 lib/cmdlib/instance_query.py
b/lib/cmdlib/instance_query.py | ||
---|---|---|
225 | 225 |
remote_info.Raise("Error checking node %s" % pnode.name) |
226 | 226 |
remote_info = remote_info.payload |
227 | 227 |
if remote_info and "state" in remote_info: |
228 |
if hv_base.HvInstanceState.IsShutdown(remote_info["state"]): |
|
228 |
if hv_base.HvInstanceState.IsShutdown(remote_info["state"]) \ |
|
229 |
and (instance.hypervisor != constants.HT_KVM |
|
230 |
or instance.hvparams[constants.HV_KVM_USER_SHUTDOWN]): |
|
229 | 231 |
remote_state = "user down" |
230 | 232 |
else: |
231 | 233 |
remote_state = "up" |
Also available in: Unified diff