Revision 931413f6

b/lib/cmdlib.py
5536 5536
    new_name = self.op.new_name
5537 5537
    if self.op.name_check:
5538 5538
      hostname = netutils.GetHostname(name=new_name)
5539
      self.LogInfo("Resolved given name '%s' to '%s'", new_name,
5540
                   hostname.name)
5539
      if hostname != new_name:
5540
        self.LogInfo("Resolved given name '%s' to '%s'", new_name,
5541
                     hostname.name)
5541 5542
      new_name = self.op.new_name = hostname.name
5542 5543
      if (self.op.ip_check and
5543 5544
          netutils.TcpPing(hostname.ip, constants.DEFAULT_NODED_PORT)):

Also available in: Unified diff