From eb0a0a822328e8563ed8af67e4e9cd573d93b31a Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 22 Jan 2020 02:06:21 +0100 Subject: mysql_user2: Explicitly set type to Bool. This avoids the [WARNING]: The value False (type bool) in a string field was converted to u'False' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. --- lib/modules/mysql_user2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/modules') diff --git a/lib/modules/mysql_user2 b/lib/modules/mysql_user2 index 20742fe..dc9a69e 100644 --- a/lib/modules/mysql_user2 +++ b/lib/modules/mysql_user2 @@ -91,7 +91,8 @@ options: description: - Check if mysql allows login as root/nopassword before trying supplied credentials. required: false - default: false + type: bool + default: no version_added: "1.3" notes: - Requires the MySQLdb Python package on the remote host. For Ubuntu, this @@ -422,7 +423,7 @@ def main(): state=dict(default="present", choices=["absent", "present"]), priv=dict(default=None), append_privs=dict(default=False, type="bool"), - check_implicit_admin=dict(default=False), + check_implicit_admin=dict(default=False, type="bool"), auth_plugin=dict(default=None), soname=dict(default=None) ) -- cgit v1.2.3