Skip to content
Snippets Groups Projects
Commit b5762e2a authored by Guido Trotter's avatar Guido Trotter
Browse files

cli: add a timeout option


Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent a2771c83
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,7 @@ __all__ = [ ...@@ -111,6 +111,7 @@ __all__ = [
"STATIC_OPT", "STATIC_OPT",
"SYNC_OPT", "SYNC_OPT",
"TAG_SRC_OPT", "TAG_SRC_OPT",
"TIMEOUT_OPT",
"USEUNITS_OPT", "USEUNITS_OPT",
"VERBOSE_OPT", "VERBOSE_OPT",
"VG_NAME_OPT", "VG_NAME_OPT",
...@@ -816,6 +817,9 @@ NOSHUTDOWN_OPT = cli_option("","--noshutdown", dest="shutdown", ...@@ -816,6 +817,9 @@ NOSHUTDOWN_OPT = cli_option("","--noshutdown", dest="shutdown",
action="store_false", default=True, action="store_false", default=True,
help="Don't shutdown the instance (unsafe)") help="Don't shutdown the instance (unsafe)")
TIMEOUT_OPT = cli_option("--timeout", dest="timeout", type="int",
default=constants.DEFAULT_SHUTDOWN_TIMEOUT,
help="Maximum time to wait")
def _ParseArgs(argv, commands, aliases): def _ParseArgs(argv, commands, aliases):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment