Commit f92ed8ab authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Move gnt_cluster.SHOW_MACHINE_OPT to cli



This allows the option to be re-used in other places.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 17071597
...@@ -169,6 +169,7 @@ __all__ = [ ...@@ -169,6 +169,7 @@ __all__ = [
"SELECT_OS_OPT", "SELECT_OS_OPT",
"SEP_OPT", "SEP_OPT",
"SHOWCMD_OPT", "SHOWCMD_OPT",
"SHOW_MACHINE_OPT",
"SHUTDOWN_TIMEOUT_OPT", "SHUTDOWN_TIMEOUT_OPT",
"SINGLE_NODE_OPT", "SINGLE_NODE_OPT",
"SPECS_CPU_COUNT_OPT", "SPECS_CPU_COUNT_OPT",
...@@ -1335,6 +1336,10 @@ PRIMARY_IP_VERSION_OPT = \ ...@@ -1335,6 +1336,10 @@ PRIMARY_IP_VERSION_OPT = \
constants.IP6_VERSION), constants.IP6_VERSION),
help="Cluster-wide IP version for primary IP") help="Cluster-wide IP version for primary IP")
SHOW_MACHINE_OPT = cli_option("-M", "--show-machine-names", default=False,
action="store_true",
help="Show machine name for every line in output")
def _PriorityOptionCb(option, _, value, parser): def _PriorityOptionCb(option, _, value, parser):
"""Callback for processing C{--priority} option. """Callback for processing C{--priority} option.
......
...@@ -53,10 +53,6 @@ GROUPS_OPT = cli_option("--groups", default=False, ...@@ -53,10 +53,6 @@ GROUPS_OPT = cli_option("--groups", default=False,
action="store_true", dest="groups", action="store_true", dest="groups",
help="Arguments are node groups instead of nodes") help="Arguments are node groups instead of nodes")
SHOW_MACHINE_OPT = cli_option("-M", "--show-machine-names", default=False,
action="store_true",
help="Show machine name for every line in output")
FORCE_FAILOVER = cli_option("--yes-do-it", dest="yes_do_it", FORCE_FAILOVER = cli_option("--yes-do-it", dest="yes_do_it",
help="Override interactive check for --no-voting", help="Override interactive check for --no-voting",
default=False, action="store_true") default=False, action="store_true")
......
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