diff --git a/database/mysql/mysql_user.py b/database/mysql/mysql_user.py index 79dee70a3f0..06509fdf18b 100644 --- a/database/mysql/mysql_user.py +++ b/database/mysql/mysql_user.py @@ -341,7 +341,7 @@ def privileges_unpack(priv): # if we are only specifying something like REQUIRESSL and/or GRANT (=WITH GRANT OPTION) in *.* # we still need to add USAGE as a privilege to avoid syntax errors - if 'REQUIRESSL' in priv and not set(output['*.*']).difference(set('GRANT', 'REQUIRESSL')): + if 'REQUIRESSL' in priv and not set(output['*.*']).difference(set(['GRANT', 'REQUIRESSL'])): output['*.*'].append('USAGE') return output