Commit 67840b40 authored by Iustin Pop's avatar Iustin Pop

Move the “--select-os” option to cli.py

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 2d5e7ae1
......@@ -73,6 +73,7 @@ __all__ = [
"NWSYNC_OPT",
"OS_OPT",
"OS_SIZE_OPT",
"SELECT_OS_OPT",
"SEP_OPT",
"SHOWCMD_OPT",
"SINGLE_NODE_OPT",
......@@ -623,6 +624,10 @@ ALL_OPT = cli_option("--all", dest="show_all",
help="Show info on all instances on the cluster."
" This can take a long time to run, use wisely")
SELECT_OS_OPT = cli_option("--select-os", dest="select_os",
action="store_true", default=False,
help="Interactive OS reinstall, lists available"
" OS templates for selection")
def _ParseArgs(argv, commands, aliases):
......
......@@ -1423,10 +1423,7 @@ commands = {
m_force_multi,
m_node_opt, m_pri_node_opt, m_sec_node_opt,
m_clust_opt, m_inst_opt,
cli_option("--select-os", dest="select_os",
action="store_true", default=False,
help="Interactive OS reinstall, lists available"
" OS templates for selection"),
SELECT_OS_OPT,
SUBMIT_OPT,
],
"[-f] <instance>", "Reinstall a stopped 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