mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-27 15:27:11 +00:00
perf: 收集mysql账号username 优化 (#10470)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
parent
449e7ce454
commit
4ce2d991dd
@ -13,8 +13,8 @@ class GatherAccountsFilter:
|
||||
def mysql_filter(info):
|
||||
result = {}
|
||||
for _, user_dict in info.items():
|
||||
for username, data in user_dict.items():
|
||||
if data.get('account_locked') == 'N':
|
||||
for username, _ in user_dict.items():
|
||||
if len(username.split('.')) == 1:
|
||||
result[username] = {}
|
||||
return result
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user