@cryptotaxi247 / netdata-1 / commits / 10e6dfd52

Remove string conversion from ssl option fetching.

Fixes incorrect handling of unset values.

Austin S. Hemmelgarn committed May 2, 2018 at 10:36 UTC 10e6dfd52aec25b3921f95e78b8dfc2a5ccd5726
1 file changed +2 -2
python.d/python_modules/bases/FrameworkServices/SocketService.py
+2 -2
@@ -281,8 +281,8 @@ class SocketService(SimpleService):
281 self.debug('No SSL preference specified, not using SSL.')
282
283 if self.ssl and _SSL_SUPPORT:
284 - self.key = str(self.configuration.get('ssl_key'))
285 - self.cert = str(self.configuration.get('ssl_cert'))
284 + self.key = self.configuration.get('ssl_key')
285 + self.cert = self.configuration.get('ssl_cert')
286 if not self.cert:
287 # If there's not a valid certificate, clear the key too.
288 self.debug('No valid SSL client certificate configuration found.')