Commit feb09e6a authored by Iustin Pop's avatar Iustin Pop

Move the “--on-secondary” option to cli.py

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent a72d0a79
......@@ -74,6 +74,7 @@ __all__ = [
"NOSTART_OPT",
"NWSYNC_OPT",
"ON_PRIMARY_OPT",
"ON_SECONDARY_OPT",
"OS_OPT",
"OS_SIZE_OPT",
"SELECT_OS_OPT",
......@@ -648,6 +649,11 @@ ON_PRIMARY_OPT = cli_option("-p", "--on-primary", dest="on_primary",
help="Replace the disk(s) on the primary"
" node (only for the drbd template)")
ON_SECONDARY_OPT = cli_option("-s", "--on-secondary", dest="on_secondary",
default=False, action="store_true",
help="Replace the disk(s) on the secondary"
" node (only for the drbd template)")
def _ParseArgs(argv, commands, aliases):
"""Parser for the command line arguments.
......
......@@ -1438,10 +1438,7 @@ commands = {
[DEBUG_OPT,
NEW_SECONDARY_OPT,
ON_PRIMARY_OPT,
cli_option("-s", "--on-secondary", dest="on_secondary",
default=False, action="store_true",
help=("Replace the disk(s) on the secondary"
" node (only for the drbd template)")),
ON_SECONDARY_OPT,
cli_option("-a", "--auto", dest="auto",
default=False, action="store_true",
help=("Automatically replace faulty disks"
......
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