Skip to content

Commit

Permalink
fix key for username in the output to match mysql_user input
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-indermuehle committed Sep 20, 2023
1 parent ed6b9c8 commit 0529426
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/modules/mysql_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,12 @@ def __get_users_privs(self):
{
"host": "users_privs.com",
"priv": "*.*: ALL,GRANT",
"user": "users_privs_adm"
"name": "users_privs_adm"
},
{
"host": "users_privs.com",
"priv": "`mysql`.*: SELECT/`users_privs_db`.*: SELECT",
"user": "users_privs_multi"
"name": "users_privs_multi"
}
]
"""
Expand Down Expand Up @@ -569,7 +569,7 @@ def __get_users_privs(self):

copy_ressource_limits = dict.copy(resource_limits)
output_dict = {
'user': user,
'name': user,
'host': host,
'priv': '/'.join(priv_string),
'resource_limits': copy_ressource_limits,
Expand Down

0 comments on commit 0529426

Please sign in to comment.