Revision 0d3f52da

b/lib/cmdlib/instance_query.py
35 35
  CheckInstanceNodeGroups, CheckInstancesNodeGroups, AnnotateDiskParams
36 36
from ganeti.cmdlib.instance_operation import GetInstanceConsole
37 37
from ganeti.cmdlib.instance_utils import NICListToTuple
38
from ganeti.hypervisor import hv_base
38 39

  
39 40
import ganeti.masterd.instance
40 41

  
......
409 410
        remote_info.Raise("Error checking node %s" % pnode.name)
410 411
        remote_info = remote_info.payload
411 412
        if remote_info and "state" in remote_info:
412
          remote_state = "up"
413
          if hv_base.HvInstanceState.IsShutdown(remote_info["state"]):
414
            remote_state = "user down"
415
          else:
416
            remote_state = "up"
413 417
        else:
414 418
          if instance.admin_state == constants.ADMINST_UP:
415 419
            remote_state = "down"

Also available in: Unified diff