mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-27 08:21:46 -07:00
mysql_user and mysql_role: log some updated privileges; explain integration test blind spot
This commit is contained in:
parent
29885d1243
commit
37fa66a836
2 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted,
|
|||
grant_privs.extend(curr_priv[db_table])
|
||||
|
||||
if len(grant_privs) + len(revoke_privs) > 0:
|
||||
msg = "Privileges updated"
|
||||
msg = "Privileges updated: granted %s, revoked %s" % (grant_privs, revoke_privs)
|
||||
if module.check_mode:
|
||||
return (True, msg)
|
||||
if len(revoke_privs) > 0:
|
||||
|
|
|
@ -173,7 +173,7 @@
|
|||
state: present
|
||||
register: result
|
||||
|
||||
# FIXME: on mariadb 10.5 there's always a change
|
||||
# FIXME: on mariadb >=10.5.2 there's always a change because the REPLICATION CLIENT privilege was renamed to BINLOG MONITOR
|
||||
- name: Assert that priv did not change
|
||||
assert:
|
||||
that:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue