mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-27 08:21:46 -07:00
mysql_user and mysql_role: fix type error
This commit is contained in:
parent
da9e179848
commit
8f20adb5f5
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted,
|
|||
revoke_privs = list(set(curr_priv[db_table]) - set(new_priv[db_table]))
|
||||
if grant_privs == ['GRANT']:
|
||||
# USAGE grants no privileges, it is only needed because 'WITH GRANT OPTION' cannot stand alone
|
||||
grant_privs.extend('USAGE')
|
||||
grant_privs.append('USAGE')
|
||||
|
||||
if len(grant_privs) + len(revoke_privs) > 0:
|
||||
msg = "Privileges updated: granted %s, revoked %s" % (grant_privs, revoke_privs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue