From f80ef4f9b455090f52dba91b6239e15514f3ee1e Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Tue, 19 Sep 2023 14:59:38 +0200 Subject: [PATCH] fix sanity tests for python 2.6 the right way (my bad) --- plugins/modules/mysql_info.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/modules/mysql_info.py b/plugins/modules/mysql_info.py index aad7f4d..64e20d1 100644 --- a/plugins/modules/mysql_info.py +++ b/plugins/modules/mysql_info.py @@ -554,11 +554,11 @@ class MySQL_Info(object): # indicate an empty string. # # TODO: when dropping support of ansible-core 2.12, change: - # set([x for x in priv]) == set(['PROXY', 'GRANT']) + # set(['PROXY', 'GRANT']) # into: - # set(priv) == {'PROXY', 'GRANT'} + # {'PROXY', 'GRANT'} # This is because the Sanity test for 2.12 uses Python 2.6!!! - if set([x for x in priv]) == set(['PROXY', 'GRANT']) and user == 'root': + if set(priv) == set(['PROXY', 'GRANT']) and user == 'root': priv_string.append("'``@`%`: 'PROXY,GRANT'") continue