From 9da92bfba0824eacc6955125eae18ba590efd855 Mon Sep 17 00:00:00 2001 From: Mark van Driel Date: Wed, 6 Jan 2016 11:53:06 +0100 Subject: Fixed "invalid privileges string: set expected at most 1 arguments, got 2" --- database/mysql/mysql_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'database') diff --git a/database/mysql/mysql_user.py b/database/mysql/mysql_user.py index 79dee70a..06509fdf 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 -- cgit v1.2.1