summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/mysql_user2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mysql_user b/lib/mysql_user
index 602235a..64e1f3d 100644
--- a/lib/mysql_user
+++ b/lib/mysql_user
@@ -286,7 +286,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]] = [ g.strip() for g in pieces[1].upper().split(',') ]
if '*.*' not in output:
output['*.*'] = ['USAGE']