fence-agents: master - fence_rhevm: Use https:// prefix also with --ssl-secure and --ssl-insecure

Marek GrĂ¡c marx at fedoraproject.org
Wed Sep 17 12:28:54 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=14f6c3bc1e60e038c0b4daa87b1d0bda0d873661
Commit:        14f6c3bc1e60e038c0b4daa87b1d0bda0d873661
Parent:        004ce512d61867bcc981ae49c5fbf5ffb30172fa
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Wed Sep 17 14:28:25 2014 +0200
Committer:     Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Wed Sep 17 14:28:25 2014 +0200

fence_rhevm: Use https:// prefix also with --ssl-secure and --ssl-insecure

---
 fence/agents/rhevm/fence_rhevm.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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:"


More information about the cluster-commits mailing list