From 4093de51ddb89b0021b388c2bf69b0f08934eac1 Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Tue, 19 Sep 2023 14:48:10 +0200 Subject: [PATCH] fix sanity tests for python 2.6 in ansible-core 2.12 for good --- 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 10f414b..aad7f4d 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([x for x in priv]) == set(['PROXY', 'GRANT']) # into: - # set(priv) + # set(priv) == {'PROXY', 'GRANT'} # This is because the Sanity test for 2.12 uses Python 2.6!!! - if set((x for x in priv)) == {'PROXY', 'GRANT'} and user == 'root': + if set([x for x in priv]) == set(['PROXY', 'GRANT']) and user == 'root': priv_string.append("'``@`%`: 'PROXY,GRANT'") continue