diff options
author | Anirudh Duggal <anirudhdggl@gmail.com> | 2020-07-11 20:36:29 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-11 18:06:29 +0300 |
commit | 7ba2851adf571e487c68b99a9106aa831563c231 (patch) | |
tree | 7f81b5d8685569a55c9bc4fb10af2ef4f0328d47 /collectors | |
parent | 822880265e88a8f6a6d35d00eb0d0b5072d7ac1c (diff) |
mysql: respect `my.cnf` parameter using PyMySQL library (#9526)
Diffstat (limited to 'collectors')
-rw-r--r-- | collectors/python.d.plugin/python_modules/bases/FrameworkServices/MySQLService.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/collectors/python.d.plugin/python_modules/bases/FrameworkServices/MySQLService.py b/collectors/python.d.plugin/python_modules/bases/FrameworkServices/MySQLService.py index 354d09ad8a..7f5c7d221d 100644 --- a/collectors/python.d.plugin/python_modules/bases/FrameworkServices/MySQLService.py +++ b/collectors/python.d.plugin/python_modules/bases/FrameworkServices/MySQLService.py @@ -51,11 +51,7 @@ class MySQLService(SimpleService): properties['host'] = conf['host'] properties['port'] = int(conf.get('port', 3306)) elif conf.get('my.cnf'): - if MySQLdb.__name__ == 'pymysql': - # TODO: this is probablt wrong, it depends on version - self.error('"my.cnf" parsing is not working for pymysql') - else: - properties['read_default_file'] = conf['my.cnf'] + properties['read_default_file'] = conf['my.cnf'] if conf.get('ssl'): properties['ssl'] = conf['ssl'] |