---
lib/cli.py | 6 ++++++
scripts/gnt-instance | 8 ++------
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/lib/cli.py b/lib/cli.py
index b60d9e2..88a8b3b 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -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.
diff --git a/scripts/gnt-instance b/scripts/gnt-instance
index a7d536c..6bd2f2c 100755
--- a/scripts/gnt-instance
+++ b/scripts/gnt-instance
@@ -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,
--
1.6.3.3