fix sanity tests for python 2.6 the right way (my bad)

This commit is contained in:
Laurent Indermuehle 2023-09-19 14:59:38 +02:00
parent 4093de51dd
commit f80ef4f9b4
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -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