mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-20 09:21:25 -07:00
cut option maria_role as it as nothing to do with roles
This was introduced in #189. To my knowledge, there is no difference between MySQL and MariaDB regarding roles or when you call a user by its name alone. Both works if the host it '%'. Same for roles.
This commit is contained in:
parent
033b4c74f9
commit
a7ea11353c
2 changed files with 30 additions and 45 deletions
|
@ -789,8 +789,7 @@ class Role():
|
|||
if privs:
|
||||
for db_table, priv in iteritems(privs):
|
||||
privileges_grant(self.cursor, self.name, self.host,
|
||||
db_table, priv, tls_requires=None,
|
||||
maria_role=self.is_mariadb)
|
||||
db_table, priv, tls_requires=None)
|
||||
|
||||
return True
|
||||
|
||||
|
@ -932,7 +931,7 @@ class Role():
|
|||
result = user_mod(self.cursor, self.name, self.host,
|
||||
None, None, None, None, None, None,
|
||||
privs, append_privs, subtract_privs, None,
|
||||
self.module, role=True, maria_role=self.is_mariadb)
|
||||
self.module, role=True)
|
||||
changed = result['changed']
|
||||
|
||||
if admin:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue