You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2018/05/08 10:51:25 UTC

[ambari] branch trunk updated: AMBARI-23788. Make server/agent connection with no cert verification possible with agent python 2.7.5 (aonishuk)

This is an automated email from the ASF dual-hosted git repository.

aonishuk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 77cb8c3  AMBARI-23788. Make server/agent connection with no cert verification possible with agent python 2.7.5 (aonishuk)
77cb8c3 is described below

commit 77cb8c3085fd3014a06c29d66919310f8a76ff66
Author: Andrew Onishuk <ao...@hortonworks.com>
AuthorDate: Tue May 8 12:59:41 2018 +0300

    AMBARI-23788. Make server/agent connection with no cert verification possible with agent python 2.7.5 (aonishuk)
---
 ambari-agent/src/main/python/ambari_agent/NetUtil.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-agent/src/main/python/ambari_agent/NetUtil.py b/ambari-agent/src/main/python/ambari_agent/NetUtil.py
index daa625c..7c8a4e4 100644
--- a/ambari-agent/src/main/python/ambari_agent/NetUtil.py
+++ b/ambari-agent/src/main/python/ambari_agent/NetUtil.py
@@ -66,7 +66,7 @@ class NetUtil:
     try:
       parsedurl = urlparse(url)
 
-      if sys.version_info >= (2,7,9) and not ssl_verify_cert:
+      if sys.version_info >= (2,7,5) and not ssl_verify_cert:
           import ssl
           ca_connection = httplib.HTTPSConnection(parsedurl[1], context=ssl._create_unverified_context())
       else:

-- 
To stop receiving notification emails like this one, please contact
aonishuk@apache.org.