Blame SOURCES/bz1165591-fence_cisco_ucs-https.patch

e4ffb1
From e283cfbba8bd6d6def515f59db5f150e0b58f780 Mon Sep 17 00:00:00 2001
e4ffb1
From: Marek 'marx' Grac <mgrac@redhat.com>
e4ffb1
Date: Wed, 17 Jun 2015 19:47:00 +0200
e4ffb1
Subject: [PATCH 05/10] fence_cisco_ucs: protocol prefix of URL was not
e4ffb1
 correctly set with --ssl-(in)secure
e4ffb1
e4ffb1
Resolves: rhbz#1165591
e4ffb1
---
e4ffb1
 fence/agents/cisco_ucs/fence_cisco_ucs.py | 2 +-
e4ffb1
 1 file changed, 1 insertion(+), 1 deletion(-)
e4ffb1
e4ffb1
diff --git a/fence/agents/cisco_ucs/fence_cisco_ucs.py b/fence/agents/cisco_ucs/fence_cisco_ucs.py
e4ffb1
index f411433..825b5db 100644
e4ffb1
--- a/fence/agents/cisco_ucs/fence_cisco_ucs.py
e4ffb1
+++ b/fence/agents/cisco_ucs/fence_cisco_ucs.py
e4ffb1
@@ -77,7 +77,7 @@ def get_list(conn, options):
e4ffb1
 
e4ffb1
 def send_command(opt, command, timeout):
e4ffb1
 	## setup correct URL
e4ffb1
-	if opt.has_key("--ssl"):
e4ffb1
+	if "--ssl" in opt or "--ssl-secure" in opt or "--ssl-insecure" in opt:
e4ffb1
 		url = "https:"
e4ffb1
 	else:
e4ffb1
 		url = "http:"
e4ffb1
-- 
e4ffb1
1.9.3
e4ffb1