From 487036e2ffb9f979ed1b4f420a90e2a940fe8f5f Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Fri, 15 Sep 2023 14:56:00 +0200 Subject: [PATCH] add set to work no matter the order --- plugins/modules/mysql_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/mysql_info.py b/plugins/modules/mysql_info.py index 91fef59..cfe85bd 100644 --- a/plugins/modules/mysql_info.py +++ b/plugins/modules/mysql_info.py @@ -545,7 +545,7 @@ class MySQL_Info(object): # and there is too many quotes. So we rewrite this. Also because we # wrap the db_table between single quotes, I use backticks to # indicate an empty string. - if priv == ['PROXY', 'GRANT'] and user == 'root': + if set(priv) == {'PROXY', 'GRANT'} and user == 'root': priv_string.append("'``@`%`: 'PROXY,GRANT'") continue