diff --git a/lib/cli.py b/lib/cli.py index dae3bf7e5baa9a47c826400a7c2934ff9e8096d6..76be606abb18fd3733a5a42700ab2ca42de1546b 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -169,6 +169,7 @@ __all__ = [ "SELECT_OS_OPT", "SEP_OPT", "SHOWCMD_OPT", + "SHOW_MACHINE_OPT", "SHUTDOWN_TIMEOUT_OPT", "SINGLE_NODE_OPT", "SPECS_CPU_COUNT_OPT", @@ -1335,6 +1336,10 @@ PRIMARY_IP_VERSION_OPT = \ constants.IP6_VERSION), 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): """Callback for processing C{--priority} option. diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py index ec06e1cc4c0f3c05e58a33a89135df35e37644d4..ecfa4ce75399d736705ad4bd5ad22255080a5c7b 100644 --- a/lib/client/gnt_cluster.py +++ b/lib/client/gnt_cluster.py @@ -53,10 +53,6 @@ GROUPS_OPT = cli_option("--groups", default=False, action="store_true", dest="groups", 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", help="Override interactive check for --no-voting", default=False, action="store_true")