From f2c1eeb54c4384d5d0bac8d227615ad9a8d81f6c Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Wed, 19 Aug 2015 08:52:05 +0000 Subject: [PATCH] Actually remove the section we are replacing --- lib/ansible/modules/database/mysql/mysql_user.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/ansible/modules/database/mysql/mysql_user.py b/lib/ansible/modules/database/mysql/mysql_user.py index 041e0903f71..8001b3fde00 100644 --- a/lib/ansible/modules/database/mysql/mysql_user.py +++ b/lib/ansible/modules/database/mysql/mysql_user.py @@ -322,13 +322,6 @@ def privileges_unpack(priv): if dbpriv[0].strip('`') != '*': pieces[0] = "`%s`.%s" % (dbpriv[0].strip('`'), dbpriv[1]) - if '.' in 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]) - if '(' in pieces[1]: output[pieces[0]] = re.split(r',\s*(?=[^)]*(?:\(|$))', pieces[1].upper()) for i in output[pieces[0]]: