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

Set default for mysql_user config_file

The default value set by the module was a value of None for the
config_file parameter, which propogates into the connect method
call overriding the stated default in the method.

Instead, the default should be set with-in the parameter
specification so the file check is not requested to check None.
This commit is contained in:
Julia Kreger 2015-04-30 11:40:04 -04:00 committed by Matt Clay
parent 0d468a3aa0
commit 6f7cd5c307

View file

@ -385,7 +385,7 @@ def main():
append_privs=dict(type="bool", default="no"),
check_implicit_admin=dict(default=False),
update_password=dict(default="always", choices=["always", "on_create"]),
config_file=dict(default=None),
config_file=dict(default="~/.my.cnf"),
)
)
login_user = module.params["login_user"]