summaryrefslogtreecommitdiffstats
path: root/python.d/python_modules
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <ahferroin7@gmail.com>2018-05-02 10:36:19 -0400
committerAustin S. Hemmelgarn <ahferroin7@gmail.com>2018-05-02 10:36:19 -0400
commit10e6dfd52aec25b3921f95e78b8dfc2a5ccd5726 (patch)
treea4f9795e26b53ef66eff6ec3afa1d41a41500e97 /python.d/python_modules
parente3896008443a112264855f680ea9cbfc4085be0a (diff)
Remove string conversion from ssl option fetching.
Fixes incorrect handling of unset values.
Diffstat (limited to 'python.d/python_modules')
-rw-r--r--python.d/python_modules/bases/FrameworkServices/SocketService.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python.d/python_modules/bases/FrameworkServices/SocketService.py b/python.d/python_modules/bases/FrameworkServices/SocketService.py
index 45131d2355..5c122186d6 100644
--- a/python.d/python_modules/bases/FrameworkServices/SocketService.py
+++ b/python.d/python_modules/bases/FrameworkServices/SocketService.py
@@ -281,8 +281,8 @@ class SocketService(SimpleService):
self.debug('No SSL preference specified, not using SSL.')
if self.ssl and _SSL_SUPPORT:
- self.key = str(self.configuration.get('ssl_key'))
- self.cert = str(self.configuration.get('ssl_cert'))
+ self.key = self.configuration.get('ssl_key')
+ self.cert = self.configuration.get('ssl_cert')
if not self.cert:
# If there's not a valid certificate, clear the key too.
self.debug('No valid SSL client certificate configuration found.')