fix: 修复终端端点使用资产标签匹配机制时 500 的问题

This commit is contained in:
Bai
2023-05-24 17:30:30 +08:00
committed by Jiangjie.Bai
parent 653b996d84
commit cabdc3ad42

View File

@@ -82,7 +82,7 @@ class Endpoint(JMSBaseModel):
return None
endpoints = cls.objects.filter(name__in=values).order_by('-date_updated')
for endpoint in endpoints:
if endpoint.is_valid_for(protocol):
if endpoint.is_valid_for(instance, protocol):
return endpoint