Revision 3b01286e lib/cmdlib.py

b/lib/cmdlib.py
9618 9618
    self.x509_key_name = self.op.x509_key_name
9619 9619
    self.dest_x509_ca_pem = self.op.destination_x509_ca
9620 9620

  
9621
    if self.op.remove_instance and not self.op.shutdown:
9622
      raise errors.OpPrereqError("Can not remove instance without shutting it"
9623
                                 " down before")
9624

  
9625 9621
    if self.op.mode == constants.EXPORT_MODE_REMOTE:
9626 9622
      if not self.x509_key_name:
9627 9623
        raise errors.OpPrereqError("Missing X509 key name for encryption",
......
9687 9683
          "Cannot retrieve locked instance %s" % self.op.instance_name
9688 9684
    _CheckNodeOnline(self, self.instance.primary_node)
9689 9685

  
9686
    if (self.op.remove_instance and self.instance.admin_up and
9687
        not self.op.shutdown):
9688
      raise errors.OpPrereqError("Can not remove instance without shutting it"
9689
                                 " down before")
9690

  
9690 9691
    if self.op.mode == constants.EXPORT_MODE_LOCAL:
9691 9692
      self.op.target_node = _ExpandNodeName(self.cfg, self.op.target_node)
9692 9693
      self.dst_node = self.cfg.GetNodeInfo(self.op.target_node)

Also available in: Unified diff