mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 19:50:31 -07:00
add set to work no matter the order
This commit is contained in:
parent
42224f3eee
commit
487036e2ff
1 changed files with 1 additions and 1 deletions
|
@ -545,7 +545,7 @@ class MySQL_Info(object):
|
||||||
# and there is too many quotes. So we rewrite this. Also because we
|
# and there is too many quotes. So we rewrite this. Also because we
|
||||||
# wrap the db_table between single quotes, I use backticks to
|
# wrap the db_table between single quotes, I use backticks to
|
||||||
# indicate an empty string.
|
# indicate an empty string.
|
||||||
if priv == ['PROXY', 'GRANT'] and user == 'root':
|
if set(priv) == {'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