Commit e00f7a05 authored by Iustin Pop's avatar Iustin Pop

Move the “--auto” option to cli.py

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent feb09e6a
......@@ -45,6 +45,7 @@ from optparse import (OptionParser, TitledHelpFormatter,
__all__ = [
# Command line options
"ALL_OPT",
"AUTO_REPLACE_OPT",
"BACKEND_OPT",
"CLEANUP_OPT",
"CONFIRM_OPT",
......@@ -654,6 +655,11 @@ ON_SECONDARY_OPT = cli_option("-s", "--on-secondary", dest="on_secondary",
help="Replace the disk(s) on the secondary"
" node (only for the drbd template)")
AUTO_REPLACE_OPT = cli_option("-a", "--auto", dest="auto",
default=False, action="store_true",
help="Automatically replace faulty disks"
" (only for the drbd template)")
def _ParseArgs(argv, commands, aliases):
"""Parser for the command line arguments.
......
......@@ -1439,10 +1439,7 @@ commands = {
NEW_SECONDARY_OPT,
ON_PRIMARY_OPT,
ON_SECONDARY_OPT,
cli_option("-a", "--auto", dest="auto",
default=False, action="store_true",
help=("Automatically replace faulty disks"
" (only for the drbd template)")),
AUTO_REPLACE_OPT,
DISKIDX_OPT,
IALLOCATOR_OPT,
SUBMIT_OPT,
......
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