mirror of https://github.com/jumpserver/jumpserver
fix: 修复远程应用连接 labels 过滤问题
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