mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-29 11:23:17 +00:00
fix: 优化系统用户迁移
This commit is contained in:
parent
3c07667689
commit
2b8d0a64fb
@ -49,7 +49,10 @@ def migrate_asset_accounts(apps, schema_editor):
|
||||
account_values.update(auth_book_auth)
|
||||
|
||||
auth_infos = []
|
||||
username = account_values['username']
|
||||
username = account_values.get('username')
|
||||
if not username:
|
||||
continue
|
||||
|
||||
for attr in auth_attrs:
|
||||
secret = account_values.pop(attr, None)
|
||||
if not secret:
|
||||
|
Loading…
Reference in New Issue
Block a user