]> arthur.barton.de Git - netdata.git/commitdiff
unify authentication
authorpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 21:42:26 +0000 (23:42 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 21:42:26 +0000 (23:42 +0200)
python.d/mysql.chart.py

index 3b019676274e562f5573c73f4869a80c6607b874..bb1f692c0ed664637b98db09dfe146f30fcef1a5 100644 (file)
@@ -321,8 +321,8 @@ class Service(SimpleService):
             self.name = 'local'
         if 'user' not in configuration:
             self.configuration['user'] = 'root'
-        if 'password' not in configuration:
-            self.configuration['password'] = ''
+        if 'pass' not in configuration:
+            self.configuration['pass'] = ''
         if 'my.cnf' in configuration:
             self.configuration['socket'] = ''
             self.configuration['host'] = ''
@@ -345,7 +345,7 @@ class Service(SimpleService):
         """
         try:
             self.connection = MySQLdb.connect(user=self.configuration['user'],
-                                              passwd=self.configuration['password'],
+                                              passwd=self.configuration['pass'],
                                               read_default_file=self.configuration['my.cnf'],
                                               unix_socket=self.configuration['socket'],
                                               host=self.configuration['host'],