Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=1c392c0c6... Commit: 1c392c0c6fa2bfd89a349d7d618f686d07e6fa0b Parent: 9d23663ae93316eedb5c925f719a21ea74e9f59f Author: Marek 'marx' Grac mgrac@redhat.com AuthorDate: Thu Jan 23 19:14:45 2014 +0100 Committer: Marek 'marx' Grac mgrac@redhat.com CommitterDate: Thu Jan 23 19:14:45 2014 +0100
fence_vmware_soap: Add delay option
Resolves: rhbz#1051159 --- fence/agents/vmware_soap/fence_vmware_soap.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/fence/agents/vmware_soap/fence_vmware_soap.py b/fence/agents/vmware_soap/fence_vmware_soap.py index 6abf626..d73e323 100644 --- a/fence/agents/vmware_soap/fence_vmware_soap.py +++ b/fence/agents/vmware_soap/fence_vmware_soap.py @@ -16,6 +16,9 @@ BUILD_DATE="April, 2011" #END_VERSION_GENERATION
def soap_login(options): + if options.has_key("-f"): + time.sleep(int(options["-f"])) + if options.has_key("-z"): url = "https://" else: @@ -169,7 +172,7 @@ def remove_tmp_dir(tmp_dir): def main(): device_opt = [ "help", "version", "agent", "quiet", "verbose", "debug", "action", "ipaddr", "login", "passwd", "passwd_script", - "ssl", "port", "uuid", "separator", "ipport", + "ssl", "port", "uuid", "separator", "ipport", "delay", "power_timeout", "shell_timeout", "login_timeout", "power_wait" ]
atexit.register(atexit_handler)