mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-20 17:31: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
34505c9b4f
commit
7f6d5f5622
3 changed files with 26 additions and 42 deletions
|
@ -776,8 +776,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
|
||||
|
||||
|
@ -919,7 +918,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