Fix a broken commandline switch option
authorRené Nussbaumer <rn@google.com>
Mon, 5 Jul 2010 14:31:29 +0000 (16:31 +0200)
committerIustin Pop <iustin@google.com>
Mon, 5 Jul 2010 14:58:59 +0000 (16:58 +0200)
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

scripts/gnt-instance

index 6e2e84f..6d0b256 100755 (executable)
@@ -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