Commit 41543d8b authored by René Nussbaumer's avatar René Nussbaumer
Browse files

Move OOB_TIMEOUT_OPT to cli.py



OOB commands where we need to be able to specify the timeout are
enhancing over the border of just gnt-node so we move it into cli.py
for easy reuse in other cli parts.
Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 75f76703
......@@ -132,6 +132,7 @@ __all__ = [
"OSPARAMS_OPT",
"OS_OPT",
"OS_SIZE_OPT",
"OOB_TIMEOUT_OPT",
"PREALLOC_WIPE_DISKS_OPT",
"PRIMARY_IP_VERSION_OPT",
"PRIORITY_OPT",
......@@ -1149,6 +1150,10 @@ NODE_POWERED_OPT = cli_option("--node-powered", default=None,
dest="node_powered",
help="Specify if the SoR for node is powered")
OOB_TIMEOUT_OPT = cli_option("--oob-timeout", dest="oob_timeout", type="int",
default=constants.OOB_TIMEOUT,
help="Maximum time to wait for out-of-band helper")
#: Options provided by all commands
COMMON_OPTS = [DEBUG_OPT]
......
......@@ -114,9 +114,6 @@ IGNORE_STATUS_OPT = cli_option("--ignore-status", default=False,
help=("Ignore the Node(s) offline status"
" (potentially DANGEROUS)"))
OOB_TIMEOUT_OPT = cli_option("--oob-timeout", dest="oob_timeout", type="int",
default=constants.OOB_TIMEOUT,
help="Maximum time to wait for out-of-band helper")
def ConvertStorageType(user_storage_type):
"""Converts a user storage type to its internal name.
......
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