1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Allow playbook specified login_user and login_password to override config file settings

This commit is contained in:
Toshio Kuratomi 2015-04-30 12:49:32 -07:00 committed by Matt Clay
parent 46b60a5b70
commit 4f42e752e6

View file

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