mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-20 12:12:19 +00:00
fix: 修复远程应用连接 labels 过滤问题
This commit is contained in:
parent
6955fc1734
commit
c3820b30b8
@ -171,7 +171,7 @@ class Applet(JMSBaseModel):
|
|||||||
if not hosts:
|
if not hosts:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
spec_label = asset.labels.filter(name__in=['AppletHost', '发布机']).first()
|
spec_label = asset.labels.filter(label__name__in=['AppletHost', '发布机']).first()
|
||||||
if spec_label:
|
if spec_label:
|
||||||
matched = [host for host in hosts if host.name == spec_label.value]
|
matched = [host for host in hosts if host.name == spec_label.value]
|
||||||
if matched:
|
if matched:
|
||||||
|
Loading…
Reference in New Issue
Block a user