From c3820b30b89fb193df64548b14d5786d30ea9c77 Mon Sep 17 00:00:00 2001 From: Bai Date: Fri, 15 Dec 2023 12:18:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=BF=9C=E7=A8=8B?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E8=BF=9E=E6=8E=A5=20labels=20=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/models/applet/applet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/terminal/models/applet/applet.py b/apps/terminal/models/applet/applet.py index 3110b506f..05209b03d 100644 --- a/apps/terminal/models/applet/applet.py +++ b/apps/terminal/models/applet/applet.py @@ -171,7 +171,7 @@ class Applet(JMSBaseModel): if not hosts: return None - spec_label = asset.labels.filter(name__in=['AppletHost', '发布机']).first() + spec_label = asset.labels.filter(label__name__in=['AppletHost', '发布机']).first() if spec_label: matched = [host for host in hosts if host.name == spec_label.value] if matched: