From d9f59806caa04e7984cff43d599cd134a7157b5e Mon Sep 17 00:00:00 2001 From: "R. Sicart" Date: Thu, 1 Sep 2022 16:50:55 +0200 Subject: [PATCH] Fix: sanity and unity tests --- 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 b234d72..bc874e1 100644 --- a/plugins/module_utils/user.py +++ b/plugins/module_utils/user.py @@ -365,7 +365,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted, # ... avoiding pointless revocations when ALL are granted if 'ALL' in grant_privs or 'ALL PRIVILEGES' in grant_privs: - revoke_privs = list({'GRANT', 'PROXY'} & set(revoke_privs)) + revoke_privs = list(set(['GRANT', 'PROXY']).intersection(set(revoke_privs))) # Only revoke grant option if it exists and absence is requested #