mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-30 21:27:58 +00:00
[Update] 修复初始化 Default 节点的 Bug(原因:在其他组织下 Default 节点默认的 key 1 已经存在)2
This commit is contained in:
parent
fde8702916
commit
a0be7333fb
@ -410,7 +410,7 @@ class SomeNodesMixin:
|
||||
try:
|
||||
cls.default_node()
|
||||
except IntegrityError as e:
|
||||
logger.error("Create default node failed")
|
||||
logger.error("Create default node failed: {}".format(e))
|
||||
cls.modify_other_org_root_node_key()
|
||||
cls.default_node()
|
||||
cls.empty_node()
|
||||
|
Loading…
Reference in New Issue
Block a user