mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-03 16:35:10 +00:00
fix: 修复系统用户同步同时包含pwd/ssh-key导致创建账号id冲突报错的问题
This commit is contained in:
@@ -25,7 +25,7 @@ def migrate_asset_accounts(apps, schema_editor):
|
|||||||
count += len(auth_books)
|
count += len(auth_books)
|
||||||
# auth book 和 account 相同的属性
|
# auth book 和 account 相同的属性
|
||||||
same_attrs = [
|
same_attrs = [
|
||||||
'id', 'username', 'comment', 'date_created', 'date_updated',
|
'username', 'comment', 'date_created', 'date_updated',
|
||||||
'created_by', 'asset_id', 'org_id',
|
'created_by', 'asset_id', 'org_id',
|
||||||
]
|
]
|
||||||
# 认证的属性,可能是 auth_book 的,可能是 system_user 的
|
# 认证的属性,可能是 auth_book 的,可能是 system_user 的
|
||||||
|
Reference in New Issue
Block a user