Fix double use of PRIORITY_OPT in gnt-node migrate
authorIustin Pop <iustin@google.com>
Fri, 10 Aug 2012 09:38:12 +0000 (11:38 +0200)
committerIustin Pop <iustin@google.com>
Fri, 10 Aug 2012 15:02:11 +0000 (17:02 +0200)
This breaks the command, as optparse considers that an error.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>

lib/client/gnt_node.py

index cbf9883..472ae68 100644 (file)
@@ -1001,7 +1001,7 @@ commands = {
     MigrateNode, ARGS_ONE_NODE,
     [FORCE_OPT, NONLIVE_OPT, MIGRATION_MODE_OPT, DST_NODE_OPT,
      IALLOCATOR_OPT, PRIORITY_OPT, IGNORE_IPOLICY_OPT,
-     NORUNTIME_CHGS_OPT, SUBMIT_OPT, PRIORITY_OPT],
+     NORUNTIME_CHGS_OPT, SUBMIT_OPT],
     "[-f] <node>",
     "Migrate all the primary instance on a node away from it"
     " (only for instances of type drbd)"),