From 118a0f7a3048faf56d68745ee7c74c2c20d6c479 Mon Sep 17 00:00:00 2001 From: Stuart McLaren Date: Fri, 1 Feb 2013 10:02:01 +0000 Subject: [PATCH] Make effective ssl callback behaviour more obvious When using 'insecure' no callback is executed. Make it more obvious that the set_verify callback won't be called by replacing it with a lambda. Fixes bug 1112361. Change-Id: Ib5d43a8883f7ed76383971d8154e2111f5ab2869 --- glanceclient/common/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py index 502edabe..239cea4e 100644 --- a/glanceclient/common/http.py +++ b/glanceclient/common/http.py @@ -317,7 +317,7 @@ class VerifiedHTTPSConnection(httplib.HTTPSConnection): self.verify_callback) else: self.context.set_verify(OpenSSL.SSL.VERIFY_NONE, - self.verify_callback) + lambda *args: True) if self.cert_file: try: