@cryptotaxi247 / netdata-1 / commits / 7ba2851ad

mysql: respect `my.cnf` parameter using PyMySQL library (#9526)

Anirudh Duggal committed Jul 11, 2020 at 20:36 UTC 7ba2851adf571e487c68b99a9106aa831563c231
1 file changed +1 -5
collectors/python.d.plugin/python_modules/bases/FrameworkServices/MySQLService.py
+1 -5
@@ -51,11 +51,7 @@ class MySQLService(SimpleService):
51 properties['host'] = conf['host']
52 properties['port'] = int(conf.get('port', 3306))
53 elif conf.get('my.cnf'):
54 - if MySQLdb.__name__ == 'pymysql':
55 - # TODO: this is probablt wrong, it depends on version
56 - self.error('"my.cnf" parsing is not working for pymysql')
57 - else:
58 - properties['read_default_file'] = conf['my.cnf']
54 + properties['read_default_file'] = conf['my.cnf']
55
56 if conf.get('ssl'):
57 properties['ssl'] = conf['ssl']