Revision 44caf5a8 lib/cmdlib.py

b/lib/cmdlib.py
2907 2907
  HTYPE = constants.HTYPE_NODE
2908 2908
  _OP_REQP = ["node_name"]
2909 2909

  
2910
  def CheckArguments(self):
2911
    # validate/normalize the node name
2912
    self.op.node_name = utils.HostInfo.NormalizeName(self.op.node_name)
2913

  
2910 2914
  def BuildHooksEnv(self):
2911 2915
    """Build hooks env.
2912 2916

  
......
5654 5658
    # for tools
5655 5659
    if not hasattr(self.op, "name_check"):
5656 5660
      self.op.name_check = True
5661
    # validate/normalize the instance name
5662
    self.op.instance_name = utils.HostInfo.NormalizeName(self.op.instance_name)
5657 5663
    if self.op.ip_check and not self.op.name_check:
5658 5664
      # TODO: make the ip check more flexible and not depend on the name check
5659 5665
      raise errors.OpPrereqError("Cannot do ip checks without a name check",

Also available in: Unified diff