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:
Laurent Indermuehle 2023-10-11 14:00:20 +02:00
parent 033b4c74f9
commit a7ea11353c
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
2 changed files with 30 additions and 45 deletions

View file

@ -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: