Commit fb2865ae authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

LUInstanceRename: Compare name with name

… instead of object with name.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarRené Nussbaumer <>
parent cdde200a
......@@ -6437,7 +6437,7 @@ class LUInstanceRename(LogicalUnit):
new_name = self.op.new_name
if self.op.name_check:
hostname = netutils.GetHostname(name=new_name)
if hostname != new_name:
if != new_name:
self.LogInfo("Resolved given name '%s' to '%s'", new_name,
if not utils.MatchNameComponent(self.op.new_name, []):
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