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.
pull/18777/head
Julia Kreger 10 years ago committed by Matt Clay
parent 0d468a3aa0
commit 6f7cd5c307

@ -385,7 +385,7 @@ def main():
append_privs=dict(type="bool", default="no"), append_privs=dict(type="bool", default="no"),
check_implicit_admin=dict(default=False), check_implicit_admin=dict(default=False),
update_password=dict(default="always", choices=["always", "on_create"]), 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"] login_user = module.params["login_user"]

Loading…
Cancel
Save