mirror of https://github.com/jumpserver/jumpserver
fix: Update mysql_filter to handle nested user info
parent
e1f02d79c4
commit
af85dba667
|
@ -33,7 +33,8 @@ class GatherAccountsFilter:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def mysql_filter(info):
|
def mysql_filter(info):
|
||||||
result = {}
|
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_last_changed = parse_date(user_info.get('password_last_changed'))
|
||||||
password_lifetime = user_info.get('password_lifetime')
|
password_lifetime = user_info.get('password_lifetime')
|
||||||
user = {
|
user = {
|
||||||
|
|
Loading…
Reference in New Issue