@cryptotaxi247 / netdata-1 / commits / 52ac03f21

redis: Service.do_auth fix

lgz committed Jun 16, 2018 at 16:48 UTC 52ac03f2170f927cc7baf0864849824904665ecd
1 file changed +3 -1
python.d/redis.chart.py
+3 -1
@@ -137,7 +137,9 @@ class Service(SocketService):
137
138 def do_auth(self):
139 resp = self._get_raw_data(request=self.auth_request)
140 - if not resp or resp.strip() != '+OK':
140 + if not resp:
141 + return False
142 + if not resp.strip() != '+OK':
143 self.error("invalid password")
144 return False
145 return True