From 0c086a134e43f7a3860d1d82febd1e36fc1f5252 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Nussbaumer?= Date: Wed, 9 Mar 2011 10:44:16 +0100 Subject: [PATCH] cli.py: Adding POWER_DELAY_OPT MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The command line option --power-delay sets the time waited between power ons. Signed-off-by: René Nussbaumer Reviewed-by: Iustin Pop --- lib/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/cli.py b/lib/cli.py index 60e86e7..98add1b 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -135,6 +135,7 @@ __all__ = [ "OS_OPT", "OS_SIZE_OPT", "OOB_TIMEOUT_OPT", + "POWER_DELAY_OPT", "PREALLOC_WIPE_DISKS_OPT", "PRIMARY_IP_VERSION_OPT", "PRIORITY_OPT", @@ -1170,6 +1171,10 @@ 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") +POWER_DELAY_OPT = cli_option("--power-delay", dest="power_delay", type="float", + default=constants.OOB_POWER_DELAY, + help="Time in seconds to wait between power-ons") + #: Options provided by all commands COMMON_OPTS = [DEBUG_OPT] -- 1.7.10.4