add set to work no matter the order

This commit is contained in:
Laurent Indermuehle 2023-09-15 14:56:00 +02:00
parent 42224f3eee
commit 487036e2ff
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

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