From 633b36dbc123e45b3b83a6a7f34436021e2992f1 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Thu, 12 Feb 2009 17:04:07 +0000 Subject: [PATCH] Always use the same short option for iallocator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch changes the scripts so that the short name for the β--iallocatorβ option is always β-Iβ. Reviewed-by: ultrotter --- scripts/gnt-instance | 4 ++-- scripts/gnt-node | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/gnt-instance b/scripts/gnt-instance index 12bcf2f62..a5c30c8b7 100755 --- a/scripts/gnt-instance +++ b/scripts/gnt-instance @@ -1420,7 +1420,7 @@ commands = { help=("Comma-separated list of disks" " to replace (e.g. sda) (optional," " defaults to all disks")), - make_option("-i", "--iallocator", metavar="<NAME>", + make_option("-I", "--iallocator", metavar="<NAME>", help="Select new secondary for the instance" " automatically using the" " <NAME> iallocator plugin (enables" @@ -1428,7 +1428,7 @@ commands = { default=None, type="string"), SUBMIT_OPT, ], - "[-s|-p|-n NODE] <instance>", + "[-s|-p|-n NODE|-I NAME] <instance>", "Replaces all disks for the instance"), 'modify': (SetInstanceParams, ARGS_ONE, [DEBUG_OPT, FORCE_OPT, diff --git a/scripts/gnt-node b/scripts/gnt-node index a49eb3d0f..40bf59468 100755 --- a/scripts/gnt-node +++ b/scripts/gnt-node @@ -495,13 +495,13 @@ commands = { make_option("-n", "--new-secondary", dest="dst_node", help="New secondary node", metavar="NODE", default=None), - make_option("-i", "--iallocator", metavar="<NAME>", + make_option("-I", "--iallocator", metavar="<NAME>", help="Select new secondary for the instance" " automatically using the" " <NAME> iallocator plugin", default=None, type="string"), ], - "[-f] {-i <iallocator> | -n <dst>} <node>", + "[-f] {-I <iallocator> | -n <dst>} <node>", "Relocate the secondary instances from a node" " to other nodes (only for instances with drbd disk template)"), 'failover': (FailoverNode, ARGS_ONE, -- GitLab