mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 19:50:31 -07:00
fix sanity tests for python 2.6 in ansible-core 2.12 for good
This commit is contained in:
parent
89b42e2b83
commit
4093de51dd
1 changed files with 3 additions and 3 deletions
|
@ -554,11 +554,11 @@ class MySQL_Info(object):
|
||||||
# indicate an empty string.
|
# indicate an empty string.
|
||||||
#
|
#
|
||||||
# TODO: when dropping support of ansible-core 2.12, change:
|
# 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:
|
# into:
|
||||||
# set(priv)
|
# set(priv) == {'PROXY', 'GRANT'}
|
||||||
# This is because the Sanity test for 2.12 uses Python 2.6!!!
|
# 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'")
|
priv_string.append("'``@`%`: 'PROXY,GRANT'")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue