Committ 3fe11ba3 broke the instance rename as we don't use the FQDN
anymore. This fixes it.
---
lib/cmdlib.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 052d4e0..baded30 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" %
--
1.7.1