Revision bd631b02 lib/cmdlib.py

b/lib/cmdlib.py
7523 7523
    node_insts.Raise("Can't get node information from %s" % node)
7524 7524

  
7525 7525
    if instance.name not in node_insts.payload:
7526
      raise errors.OpExecError("Instance %s is not running." % instance.name)
7526
      if instance.admin_up:
7527
        state = "ERROR_down"
7528
      else:
7529
        state = "ADMIN_down"
7530
      raise errors.OpExecError("Instance %s is not running (state %s)" %
7531
                               (instance.name, state))
7527 7532

  
7528 7533
    logging.debug("Connecting to console of %s on %s", instance.name, node)
7529 7534

  

Also available in: Unified diff