Fixed "invalid privileges string: set expected at most 1 arguments, got 2"

reviewable/pr18780/r1
Mark van Driel 10 years ago
parent 0890aab41b
commit 9da92bfba0

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

Loading…
Cancel
Save