added flush privileges to write dynamic privs into db

Fixes https://github.com/ansible-collections/community.mysql/issues/120
This commit is contained in:
mkoehl 2022-04-27 14:22:52 +02:00
commit c5b228c90d

View file

@ -625,6 +625,7 @@ def privileges_revoke(cursor, user, host, db_table, priv, grant_option, maria_ro
query = ' '.join(query)
cursor.execute(query, params)
cursor.execute("FLUSH PRIVILEGES")
def privileges_grant(cursor, user, host, db_table, priv, tls_requires, maria_role=False):