From a24cdbe15e2d8679a49cfbbb28d269010b9aa725 Mon Sep 17 00:00:00 2001 From: Mark van Driel Date: Wed, 6 Jan 2016 11:53:06 +0100 Subject: [PATCH] Fixed "invalid privileges string: set expected at most 1 arguments, got 2" --- lib/ansible/modules/database/mysql/mysql_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/database/mysql/mysql_user.py b/lib/ansible/modules/database/mysql/mysql_user.py index f1044f8669c..8c16d136560 100644 --- a/lib/ansible/modules/database/mysql/mysql_user.py +++ b/lib/ansible/modules/database/mysql/mysql_user.py @@ -430,7 +430,7 @@ def privileges_unpack(priv, mode): # 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