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

pull/10551/head
Bai 2023-05-24 17:30:30 +08:00 committed by Jiangjie.Bai
parent e33dbb6aef
commit bf4ef35e5b
1 changed files with 1 additions and 1 deletions

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