Revision e964cc85 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
4979 | 4979 |
new_name = self.op.new_name |
4980 | 4980 |
if self.op.name_check: |
4981 | 4981 |
hostinfo = netutils.HostInfo(netutils.HostInfo.NormalizeName(new_name)) |
4982 |
new_name = hostinfo.name |
|
4982 |
new_name = self.op.new_name = hostinfo.name
|
|
4983 | 4983 |
if (self.op.ip_check and |
4984 | 4984 |
netutils.TcpPing(hostinfo.ip, constants.DEFAULT_NODED_PORT)): |
4985 | 4985 |
raise errors.OpPrereqError("IP %s of instance %s already in use" % |
Also available in: Unified diff