mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-21 15:54:07 +00:00
fix: 修复终端端点使用资产标签匹配机制时 500 的问题
This commit is contained in:
parent
73aeb021cc
commit
a10bb29a1e
@ -79,7 +79,7 @@ class Endpoint(JMSModel):
|
|||||||
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
Block a user