unify authentication
paulfantom committed
Jul 13, 2016 at 23:42 UTC
f32ce50b6d18e07af1c31073a8524a7070c85d0e
1 file changed
+3
-3
python.d/mysql.chart.py
+3
-3
@@ -321,8 +321,8 @@ class Service(SimpleService):
321
self.name = 'local'
322
if 'user' not in configuration:
323
self.configuration['user'] = 'root'
324
- if 'password' not in configuration:
325
- self.configuration['password'] = ''
324
+ if 'pass' not in configuration:
325
+ self.configuration['pass'] = ''
326
if 'my.cnf' in configuration:
327
self.configuration['socket'] = ''
328
self.configuration['host'] = ''
@@ -345,7 +345,7 @@ class Service(SimpleService):
345
"""
346
try:
347
self.connection = MySQLdb.connect(user=self.configuration['user'],
348
- passwd=self.configuration['password'],
348
+ passwd=self.configuration['pass'],
349
read_default_file=self.configuration['my.cnf'],
350
unix_socket=self.configuration['socket'],
351
host=self.configuration['host'],