Commit 90ed09b0 authored by René Nussbaumer's avatar René Nussbaumer Committed by Iustin Pop
Browse files

Fix a broken commandline switch option


Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 58598264
......@@ -621,7 +621,7 @@ def RenameInstance(opts, args):
@return: the desired exit code
"""
if not opts.check_name:
if not opts.name_check:
if not AskUser("As you disabled the check of the DNS entry, please verify"
" that '%s' is a FQDN. Continue?" % args[1]):
return 1
......@@ -629,7 +629,7 @@ def RenameInstance(opts, args):
op = opcodes.OpRenameInstance(instance_name=args[0],
new_name=args[1],
ignore_ip=not opts.ip_check,
check_name=opts.check_name)
check_name=opts.name_check)
SubmitOrSend(op, opts)
return 0
......
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