Expand tildes and vars in the config file path

reviewable/pr18780/r1
Toshio Kuratomi 10 years ago
parent 145361aea3
commit 8c10cc20ec

@ -183,7 +183,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'

Loading…
Cancel
Save