Blame SOURCES/bz1165591-fence_cisco_ucs-https.patch

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