Unverified Commit 638ba316 authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #2582 from jumpserver/dev_bugfix_assets

[Bugfix] 修复资产对象获取所有节点时的bug
parents 55eff5ea c31b169c
......@@ -153,7 +153,7 @@ class Asset(OrgModelMixin):
nodes = []
for node in self.get_nodes():
_nodes = node.get_ancestor(with_self=True)
_nodes.append(_nodes)
nodes.append(_nodes)
if flat:
nodes = list(reduce(lambda x, y: set(x) | set(y), nodes))
return nodes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment