diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 052d4e00bdb408376d63d4452eeece3e9b54d886..baded30c0cd79fde2f7cb1375c510c3cb489ea2d 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -4979,7 +4979,7 @@ class LURenameInstance(LogicalUnit): new_name = self.op.new_name if self.op.name_check: hostinfo = netutils.HostInfo(netutils.HostInfo.NormalizeName(new_name)) - new_name = hostinfo.name + new_name = self.op.new_name = hostinfo.name if (self.op.ip_check and netutils.TcpPing(hostinfo.ip, constants.DEFAULT_NODED_PORT)): raise errors.OpPrereqError("IP %s of instance %s already in use" %