File 0012-fence_rhevm-Use-https-prefix-also-with-ssl-secure-an.patch of Package fence-agents

From 3c1b6bfb4e0ee7dc583a95c94228003209f3add4 Mon Sep 17 00:00:00 2001
From: Marek 'marx' Grac <mgrac@redhat.com>
Date: Wed, 17 Sep 2014 14:28:25 +0200
Subject: [PATCH 12/16] fence_rhevm: Use https:// prefix also with --ssl-secure
 and --ssl-insecure

---
 fence/agents/rhevm/fence_rhevm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fence/agents/rhevm/fence_rhevm.py b/fence/agents/rhevm/fence_rhevm.py
index 444fb56..1002097 100644
--- a/fence/agents/rhevm/fence_rhevm.py
+++ b/fence/agents/rhevm/fence_rhevm.py
@@ -76,7 +76,7 @@ def get_list(conn, options):
 
 def send_command(opt, command, method="GET"):
 	## setup correct URL
-	if opt.has_key("--ssl"):
+	if opt.has_key("--ssl") or opt.has_key("--ssl-secure") or opt.has_key("--ssl-insecure"):
 		url = "https:"
 	else:
 		url = "http:"
-- 
1.8.4.5

openSUSE Build Service is sponsored by