Repository: incubator-slider
Updated Branches:
  refs/heads/develop 97498ec31 -> b2f652c2a


SLIDER-1252 Slider agent fails with SSL validation errors with python 2.7.5-58


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/b2f652c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/b2f652c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/b2f652c2

Branch: refs/heads/develop
Commit: b2f652c2a7e0a43e0155c87c97ec27b82478bc31
Parents: 97498ec
Author: Gour Saha <gourks...@apache.org>
Authored: Mon Oct 30 08:29:06 2017 -0700
Committer: Gour Saha <gourks...@apache.org>
Committed: Mon Oct 30 08:29:06 2017 -0700

----------------------------------------------------------------------
 slider-agent/src/main/python/agent/NetUtil.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/b2f652c2/slider-agent/src/main/python/agent/NetUtil.py
----------------------------------------------------------------------
diff --git a/slider-agent/src/main/python/agent/NetUtil.py 
b/slider-agent/src/main/python/agent/NetUtil.py
index 11a0002..8c42aee 100644
--- a/slider-agent/src/main/python/agent/NetUtil.py
+++ b/slider-agent/src/main/python/agent/NetUtil.py
@@ -42,7 +42,7 @@ class NetUtil:
     try:
       parsedurl = urlparse(url)
 
-      if sys.version_info >= (2,7,9):
+      if sys.version_info >= (2,7,9) or sys.version_info >= (2,7,5):
         import ssl
         ca_connection = httplib.HTTPSConnection(parsedurl[1], 
context=ssl._create_unverified_context())
       else:

Reply via email to