Commit e964cc85 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix instance rename regression from 3fe11ba3

Committ 3fe11ba3

 broke the instance rename as we don't use the FQDN
anymore. This fixes it.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 44c15b81
......@@ -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" %
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment