commit 530e97f05e43bdd5bef9d24c75d4cc3057a491e8 Author: Marek 'marx' Grac Date: Fri Jan 10 15:54:49 2014 +0100 fence_vmware_soap: --delay is not respected Because fence agent do not use standard login process, support for the --delay has to be added. diff --git a/fence/agents/vmware_soap/fence_vmware_soap.py b/fence/agents/vmware_soap/fence_vmware_soap.py index 98ac011..acfdcbb 100644 --- a/fence/agents/vmware_soap/fence_vmware_soap.py +++ b/fence/agents/vmware_soap/fence_vmware_soap.py @@ -1,6 +1,6 @@ #!/usr/bin/python -import sys, exceptions +import sys, exceptions, time import shutil, tempfile sys.path.append("@FENCEAGENTSLIBDIR@") @@ -15,6 +15,9 @@ BUILD_DATE="April, 2011" #END_VERSION_GENERATION def soap_login(options): + if options["-o"] in ["off", "reboot"]: + time.sleep(int(options["--delay"])) + if options.has_key("--ssl"): url = "https://" else: