mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-23 06:21:45 -07:00
fix
This commit is contained in:
parent
521443a671
commit
ade51d74a5
1 changed files with 11 additions and 9 deletions
|
@ -692,6 +692,8 @@ def privileges_revoke(cursor, user, host, db_table, priv, grant_option, maria_ro
|
|||
query = ' '.join(query)
|
||||
cursor.execute(query, (user, host))
|
||||
priv_string = ",".join([p for p in priv if p not in ('GRANT', )])
|
||||
|
||||
if priv_string != "":
|
||||
query = ["REVOKE %s ON %s" % (priv_string, db_table)]
|
||||
|
||||
if not maria_role:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue