Commit fcdde7f2 authored by Iustin Pop's avatar Iustin Pop

Move the “--no-ssh-key-check” option to cli.py

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent b8d0f938
......@@ -74,6 +74,7 @@ __all__ = [
"NONICS_OPT",
"NONLIVE_OPT",
"NOSTART_OPT",
"NOSSH_KEYCHECK_OPT",
"NWSYNC_OPT",
"ON_PRIMARY_OPT",
"ON_SECONDARY_OPT",
......@@ -686,6 +687,10 @@ READD_OPT = cli_option("--readd", dest="readd",
default=False, action="store_true",
help="Readd old node after replacing it")
NOSSH_KEYCHECK_OPT = cli_option("--no-ssh-key-check", dest="ssh_key_check",
default=True, action="store_false",
help="Disable SSH key fingerprint checking")
def _ParseArgs(argv, commands, aliases):
"""Parser for the command line arguments.
......
......@@ -626,9 +626,7 @@ commands = {
[DEBUG_OPT,
SECONDARY_IP_OPT,
READD_OPT,
cli_option("--no-ssh-key-check", dest="ssh_key_check",
default=True, action="store_false",
help="Disable SSH key fingerprint checking"),
NOSSH_KEYCHECK_OPT,
],
"[-s ip] [--readd] [--no-ssh-key-check] <node_name>",
"Add a node to the cluster"),
......
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