mysql_user and mysql_role: log some updated privileges; explain integration test blind spot

This commit is contained in:
Felix Hamme 2022-04-28 14:00:05 +02:00
commit 37fa66a836
2 changed files with 2 additions and 2 deletions

View file

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

View file

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