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

pull/18777/head
Mark van Driel 9 years ago committed by Matt Clay
parent e9a752f769
commit a24cdbe15e

@ -430,7 +430,7 @@ def privileges_unpack(priv, mode):
# if we are only specifying something like REQUIRESSL and/or GRANT (=WITH GRANT OPTION) in *.* # 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 # 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') output['*.*'].append('USAGE')
return output return output

Loading…
Cancel
Save