fix: Update mysql_filter to handle nested user info

pull/14741/head
wangruidong 2024-12-27 18:04:40 +08:00 committed by w940853815
parent e1f02d79c4
commit af85dba667
1 changed files with 13 additions and 12 deletions

View File

@ -33,7 +33,8 @@ class GatherAccountsFilter:
@staticmethod
def mysql_filter(info):
result = {}
for username, user_info in info.items():
for host, user_dict in info.items():
for username, user_info in user_dict.items():
password_last_changed = parse_date(user_info.get('password_last_changed'))
password_lifetime = user_info.get('password_lifetime')
user = {