saltstack/salt — pull request #1752 by skreutzberger (2012-08-02 13:18:44+00:00)
Title: Hardened __grant_generate

Grants are now correctly recognized as existing even if they have one or more spaces after the comma.

I had the following test-case which failed and now it works as expected:
permissions = 'SELECT, INSERT, UPDATE, CREATE, DROP'
res = client.cmd('db1', 'mysql.grant_add', [permissions, '*.*', 'foo', '%'])
# -> res[minion] == False -> which is wrong