Skip to content

Instantly share code, notes, and snippets.

Created September 4, 2015 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/fd8e254745aac6b492ed to your computer and use it in GitHub Desktop.
Save anonymous/fd8e254745aac6b492ed to your computer and use it in GitHub Desktop.
stacks_prvs:
mysql_grants.present:
- host: '%'
- grant: ALL
- database : 'stacks'
- user: stacks
get this error :
ID: stacks_prvs
Function: mysql_grants.present
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1316, in call
*cdata['args'], **cdata['kwargs'])
File "/usr/lib/python2.7/dist-packages/salt/states/mysql_grants.py", line 122, in present
grant, database, user, host, grant_option, escape, **connection_args
File "/usr/lib/python2.7/dist-packages/salt/modules/mysql.py", line 1165, in grant_exists
for grant in grants:
TypeError: 'bool' object is not iterable
Started:
Duration:
Changes:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment