Expand tildes and vars in the config file path

pull/4420/head
Toshio Kuratomi 2015-05-08 10:40:26 -07:00 committed by Matt Clay
parent d7bd36a215
commit 5027fc0642
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class InvalidPrivsError(Exception):
# 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 = {
'host': module.params['login_host'],
'db': 'mysql'