From 94b383a6dc8df41fbf46adef86550e81f6233341 Mon Sep 17 00:00:00 2001 From: Andrew Klychkov Date: Mon, 28 Sep 2020 08:17:04 +0300 Subject: [PATCH] mysql_db: fix false warning related to unsafe_login_password (#34) * mysql_db: fix false warning when use_unsafe_password is set * add changelog fragment * fix fragment * improve fragment --- changelogs/fragments/34-mysql_db_fix_false_warning.yml | 2 ++ plugins/modules/mysql_db.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/34-mysql_db_fix_false_warning.yml diff --git a/changelogs/fragments/34-mysql_db_fix_false_warning.yml b/changelogs/fragments/34-mysql_db_fix_false_warning.yml new file mode 100644 index 0000000..b4aef56 --- /dev/null +++ b/changelogs/fragments/34-mysql_db_fix_false_warning.yml @@ -0,0 +1,2 @@ +bugfixes: +- mysql_db - fix false warning related to ``unsafe_login_password`` option (https://github.com/ansible-collections/community.mysql/issues/33). diff --git a/plugins/modules/mysql_db.py b/plugins/modules/mysql_db.py index 88190d1..330a81f 100644 --- a/plugins/modules/mysql_db.py +++ b/plugins/modules/mysql_db.py @@ -569,7 +569,7 @@ def main(): skip_lock_tables=dict(type='bool', default=False), dump_extra_args=dict(type='str'), use_shell=dict(type='bool', default=False), - unsafe_login_password=dict(type='bool', default=False), + unsafe_login_password=dict(type='bool', default=False, no_log=True), restrict_config_file=dict(type='bool', default=False), check_implicit_admin=dict(type='bool', default=False), config_overrides_defaults=dict(type='bool', default=False),