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