summaryrefslogtreecommitdiffstats
path: root/lib/modules/mysql_user2
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-01-22 02:06:21 +0100
committerGuilhem Moulin <guilhem@fripost.org>2020-01-22 02:06:23 +0100
commiteb0a0a822328e8563ed8af67e4e9cd573d93b31a (patch)
treeabfdb08e8ac9ec4d1af64b25c095b6a48eecd7a4 /lib/modules/mysql_user2
parentdfc1467c9ccb0e8427c647faa50ca92a01f5d6d6 (diff)
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.
Diffstat (limited to 'lib/modules/mysql_user2')
-rw-r--r--lib/modules/mysql_user25
1 files changed, 3 insertions, 2 deletions
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)
)