Blob Blame History Raw
commit f1ee9c18423a1c65ccab4650601bd0146f200ef3
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
Date:   Thu Feb 27 08:27:19 2014 +0100

    fence_vmware_soap: fix short/long option parsing traceback
    
    Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

diff --git a/fence/agents/vmware_soap/fence_vmware_soap.py b/fence/agents/vmware_soap/fence_vmware_soap.py
index c73a1d6..bbac1c5 100644
--- a/fence/agents/vmware_soap/fence_vmware_soap.py
+++ b/fence/agents/vmware_soap/fence_vmware_soap.py
@@ -16,7 +16,7 @@ BUILD_DATE="April, 2011"
 #END_VERSION_GENERATION
 
 def soap_login(options):
-	if options["-o"] in ["off", "reboot"]:
+	if options["--action"] in ["off", "reboot"]:
 		time.sleep(int(options["--delay"]))
 
 	if options.has_key("--ssl"):