mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-26 15:01:59 +00:00
perf: 优化default节点
This commit is contained in:
parent
d7e7c62c7a
commit
91a26abf9e
@ -529,6 +529,10 @@ class SomeNodesMixin:
|
|||||||
if not node_key1:
|
if not node_key1:
|
||||||
logger.info("Not found node that `key` = 1")
|
logger.info("Not found node that `key` = 1")
|
||||||
return
|
return
|
||||||
|
if node_key1.org_id == '':
|
||||||
|
node_key1.org_id = str(Organization.default().id)
|
||||||
|
node_key1.save()
|
||||||
|
return
|
||||||
|
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
with tmp_to_org(node_key1.org):
|
with tmp_to_org(node_key1.org):
|
||||||
|
Loading…
Reference in New Issue
Block a user