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