From 441062f061c026134db1d72a52ed77e6ab89dded Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 6 Sep 2013 09:28:30 -0500 Subject: [PATCH] Cleaning up whitspace issues in the mysql_user module --- library/database/mysql_user | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/library/database/mysql_user b/library/database/mysql_user index 6c81af8c54..22ce462954 100644 --- a/library/database/mysql_user +++ b/library/database/mysql_user @@ -242,16 +242,14 @@ def privileges_unpack(priv): for item in priv.split('/'): pieces = item.split(':') if pieces[0].find('.') != -1: - - pieces[0] = pieces[0].split('.') - for idx, piece in enumerate(pieces): - if pieces[0][idx] != "*": - pieces[0][idx] = "`" + pieces[0][idx] + "`" - pieces[0] = '.'.join(pieces[0]) + pieces[0] = pieces[0].split('.') + for idx, piece in enumerate(pieces): + if pieces[0][idx] != "*": + pieces[0][idx] = "`" + pieces[0][idx] + "`" + pieces[0] = '.'.join(pieces[0]) output[pieces[0]] = pieces[1].upper().split(',') - if '*.*' not in output: output['*.*'] = ['USAGE']