summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Rowe <dennis@wpengine.com>2015-03-31 09:59:07 -0500
committerToshio Kuratomi <toshio@fedoraproject.org>2015-05-29 18:57:19 -0700
commit781625912e0c43ea6f8b431bbe981b3d4200d5ae (patch)
treedfb23ad1a03e5dc9ebf254f6b106e56bdaf7281d
parent9df0a24d5eff79721e821f5ed70f523661d588fe (diff)
downloadansible-modules-core-781625912e0c43ea6f8b431bbe981b3d4200d5ae.tar.gz
Strip spaces around perms
-rw-r--r--database/mysql/mysql_user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/mysql/mysql_user.py b/database/mysql/mysql_user.py
index 5901771f..0dfee559 100644
--- a/database/mysql/mysql_user.py
+++ b/database/mysql/mysql_user.py
@@ -291,7 +291,7 @@ def privileges_unpack(priv):
pieces[0][idx] = "`" + pieces[0][idx] + "`"
pieces[0] = '.'.join(pieces[0])
- output[pieces[0]] = pieces[1].upper().split(',')
+ output[pieces[0]] = map(lambda s: s.strip(), pieces[1].upper().split(','))
new_privs = frozenset(output[pieces[0]])
if not new_privs.issubset(VALID_PRIVS):
raise InvalidPrivsError('Invalid privileges specified: %s' % new_privs.difference(VALID_PRIVS))