mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-06 10:40:36 -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
|
||||
# wrap the db_table between single quotes, I use backticks to
|
||||
# indicate an empty string.
|
||||
if priv == ['PROXY', 'GRANT'] and user == 'root':
|
||||
if set(priv) == {'PROXY', 'GRANT'} and user == 'root':
|
||||
priv_string.append("'``@`%`: 'PROXY,GRANT'")
|
||||
continue
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue