mirror of https://github.com/jumpserver/jumpserver
fix: 修复终端端点使用资产标签匹配机制时 500 的问题
parent
e33dbb6aef
commit
bf4ef35e5b
|
@ -82,7 +82,7 @@ class Endpoint(JMSBaseModel):
|
||||||
return None
|
return None
|
||||||
endpoints = cls.objects.filter(name__in=values).order_by('-date_updated')
|
endpoints = cls.objects.filter(name__in=values).order_by('-date_updated')
|
||||||
for endpoint in endpoints:
|
for endpoint in endpoints:
|
||||||
if endpoint.is_valid_for(protocol):
|
if endpoint.is_valid_for(instance, protocol):
|
||||||
return endpoint
|
return endpoint
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue