Expand tildes and vars in the config file path

This commit is contained in:
Toshio Kuratomi 2015-05-08 10:40:26 -07:00
parent 145361aea3
commit 8c10cc20ec

View file

@ -183,7 +183,7 @@ class InvalidPrivsError(Exception):
# MySQL module specific support methods. # MySQL module specific support methods.
# #
def connect(module, login_user=None, login_password=None, config_file='~/.my.cnf'): def connect(module, login_user=None, login_password=None, config_file=''):
config = { config = {
'host': module.params['login_host'], 'host': module.params['login_host'],
'db': 'mysql' 'db': 'mysql'