Commit b2a85958 authored by Iustin Pop's avatar Iustin Pop Committed by Michael Hanselmann
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 f64de30f
......@@ -4916,7 +4916,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