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/06/12 07:51:47 UTC
[ambari] 03/03: AMBARI-24070. Removed raising specific exception
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
commit f7fe7f9d186c3299b38e1917bb5834d921616405
Author: Srikanth Janardhan <sj...@hortonworks.com>
AuthorDate: Tue Jun 12 12:32:25 2018 +0530
AMBARI-24070. Removed raising specific exception
---
ambari-agent/src/main/python/ambari_agent/security.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ambari-agent/src/main/python/ambari_agent/security.py b/ambari-agent/src/main/python/ambari_agent/security.py
index 292e2ce..983d990 100644
--- a/ambari-agent/src/main/python/ambari_agent/security.py
+++ b/ambari-agent/src/main/python/ambari_agent/security.py
@@ -87,7 +87,7 @@ class VerifiedHTTPSConnection:
self.establish_connection(conn)
logger.info('SSL connection established. Two-way SSL authentication '
'completed successfully.')
- except ssl.SSLError as err:
+ except ssl.SSLError:
logger.error('Two-way SSL authentication failed. Ensure that '
'server and agent certificates were signed by the same CA '
'and restart the agent. '
@@ -96,7 +96,7 @@ class VerifiedHTTPSConnection:
'workaround you can turn off two-way SSL authentication in '
'server configuration(ambari.properties) '
'\nExiting..')
- raise err
+ raise
return conn
def establish_connection(self, conn):
--
To stop receiving notification emails like this one, please contact
aonishuk@apache.org.