mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-05-21 00:19:11 -07:00
add MariaDB role detection
This commit is contained in:
parent
7b13533ba1
commit
41ab19372b
1 changed files with 3 additions and 1 deletions
|
@ -607,7 +607,9 @@ class MySQL_Info(object):
|
|||
user = line['User']
|
||||
host = line['Host']
|
||||
|
||||
user_priv = privileges_get(self.cursor, user, host)
|
||||
# MariaDB roles have no host
|
||||
is_role = self.server_implementation == 'mariadb' and not host
|
||||
user_priv = privileges_get(self.cursor, user, host, maria_role=is_role)
|
||||
|
||||
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