Commit 05586c90 authored by Iustin Pop's avatar Iustin Pop

Move the “--ignore-size” option to cli.py

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent e00f7a05
......@@ -63,6 +63,7 @@ __all__ = [
"IALLOCATOR_OPT",
"IGNORE_CONSIST_OPT",
"IGNORE_FAILURES_OPT",
"IGNORE_SIZE_OPT",
"FORCE_OPT",
"NET_OPT",
"NEW_SECONDARY_OPT",
......@@ -660,6 +661,12 @@ AUTO_REPLACE_OPT = cli_option("-a", "--auto", dest="auto",
help="Automatically replace faulty disks"
" (only for the drbd template)")
IGNORE_SIZE_OPT = cli_option("--ignore-size", dest="ignore_size",
default=False, action="store_true",
help="Ignore current recorded size"
" (useful for forcing activation when"
" the recorded size is wrong)")
def _ParseArgs(argv, commands, aliases):
"""Parser for the command line arguments.
......
......@@ -1481,13 +1481,7 @@ commands = {
],
"<instance>", "Reboots an instance"),
'activate-disks': (ActivateDisks, ARGS_ONE_INSTANCE,
[DEBUG_OPT, SUBMIT_OPT,
cli_option("--ignore-size", dest="ignore_size",
default=False, action="store_true",
help="Ignore current recorded size"
" (useful for forcing activation when"
" the recorded size is wrong)"),
],
[DEBUG_OPT, SUBMIT_OPT, IGNORE_SIZE_OPT],
"<instance>",
"Activate an instance's disks"),
'deactivate-disks': (DeactivateDisks, ARGS_ONE_INSTANCE,
......
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