mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-22 05:51:45 -07:00
add option to not summarize all privileges
We summarize ALL for mysql_info, but mysql_user needs to compare actual privileges with the ones provided by ansible.
This commit is contained in:
parent
7036490e7e
commit
34505c9b4f
2 changed files with 5 additions and 5 deletions
|
@ -566,7 +566,7 @@ class MySQL_Info(object):
|
|||
user = line['User']
|
||||
host = line['Host']
|
||||
|
||||
user_priv = privileges_get(self.module, self.cursor, user, host)
|
||||
user_priv = privileges_get(self.module, self.cursor, user, host, maria_role=False, summarize_all=True)
|
||||
|
||||
if not user_priv:
|
||||
self.module.warn("No privileges found for %s on host %s" % (user, host))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue