basically, for this state: =========== keystone-mysql-grant-wildcard: mysql_grants.present: - database: keystone.* - grant: ALL PRIVILEGES - user: openstack - host: "%" - require: - service.running: mysql-server - mysql_database.present: keystone - mysql_user.present: openstack - pkg: python-mysqldb ========== it's returning this error: ---------- State: - mysql_grants Name: keystone-mysql-grant-wildcard Function: 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 Changes: ---------- and that looks to be doing the wrong thing in the code: ===== grants = user_grants(user, host, **connection_args) for grant in grants: =====