fix key for username in the output to match mysql_user input

This commit is contained in:
Laurent Indermuehle 2023-09-20 16:06:12 +02:00
parent af327daa8e
commit 74ffacfa0f
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -517,12 +517,12 @@ class MySQL_Info(object):
{
"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"
}
]
"""
@ -569,7 +569,7 @@ class MySQL_Info(object):
copy_ressource_limits = dict.copy(resource_limits)
output_dict = {
'user': user,
'name': user,
'host': host,
'priv': '/'.join(priv_string),
'resource_limits': copy_ressource_limits,