Commit ee3f9578 authored by Iustin Pop's avatar Iustin Pop

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

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 12054861
......@@ -69,6 +69,7 @@ __all__ = [
"IALLOCATOR_OPT",
"IGNORE_CONSIST_OPT",
"IGNORE_FAILURES_OPT",
"IGNORE_SECONDARIES_OPT",
"IGNORE_SIZE_OPT",
"FORCE_OPT",
"MAC_PREFIX_OPT",
......@@ -798,6 +799,11 @@ REBOOT_TYPE_OPT = cli_option("-t", "--type", dest="reboot_type",
metavar="<REBOOT>",
choices=list(constants.REBOOT_TYPES))
IGNORE_SECONDARIES_OPT = cli_option("--ignore-secondaries",
dest="ignore_secondaries",
default=False, action="store_true",
help="Ignore errors from secondaries")
def _ParseArgs(argv, commands, aliases):
"""Parser for the command line arguments.
......
......@@ -1467,12 +1467,8 @@ commands = {
"<instance>", "Starts an instance"),
'reboot': (RebootInstance, [ArgInstance(min=1)],
[DEBUG_OPT, m_force_multi, REBOOT_TYPE_OPT,
cli_option("--ignore-secondaries", dest="ignore_secondaries",
default=False, action="store_true",
help="Ignore errors from secondaries"),
m_node_opt, m_pri_node_opt, m_sec_node_opt,
m_clust_opt, m_inst_opt,
SUBMIT_OPT,
IGNORE_SECONDARIES_OPT, m_node_opt, m_pri_node_opt,
m_sec_node_opt, m_clust_opt, m_inst_opt, SUBMIT_OPT,
],
"<instance>", "Reboots an instance"),
'activate-disks': (ActivateDisks, 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