From 8f20adb5f56c31d47e4a941359fc0a3e843435ee Mon Sep 17 00:00:00 2001 From: Felix Hamme Date: Thu, 28 Apr 2022 17:59:43 +0200 Subject: [PATCH] mysql_user and mysql_role: fix type error --- plugins/module_utils/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/user.py b/plugins/module_utils/user.py index 67a04fc..bf359c5 100644 --- a/plugins/module_utils/user.py +++ b/plugins/module_utils/user.py @@ -333,7 +333,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted, revoke_privs = list(set(curr_priv[db_table]) - set(new_priv[db_table])) if grant_privs == ['GRANT']: # USAGE grants no privileges, it is only needed because 'WITH GRANT OPTION' cannot stand alone - grant_privs.extend('USAGE') + grant_privs.append('USAGE') if len(grant_privs) + len(revoke_privs) > 0: msg = "Privileges updated: granted %s, revoked %s" % (grant_privs, revoke_privs)