From 1d384beadd80797b35952495e6f6b7d6cd54b9d3 Mon Sep 17 00:00:00 2001 From: xfwduke Date: Fri, 22 Mar 2024 17:30:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(mysql):=20=E8=BF=BD=E5=8A=A0=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E4=B8=AD=E6=8E=A7=E5=8F=82=E6=95=B0=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E6=8A=A5=E9=94=99=20#3658?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/ticket/builders/tendbcluster/append_deploy_ctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbm-ui/backend/ticket/builders/tendbcluster/append_deploy_ctl.py b/dbm-ui/backend/ticket/builders/tendbcluster/append_deploy_ctl.py index f9f9679746..48f8746e99 100644 --- a/dbm-ui/backend/ticket/builders/tendbcluster/append_deploy_ctl.py +++ b/dbm-ui/backend/ticket/builders/tendbcluster/append_deploy_ctl.py @@ -34,7 +34,7 @@ def validate(self, attrs): def __validate_cluster(self, attrs): app_obj = AppCache.objects.get(bk_biz_id=attrs["bk_biz_id"]) - for cluster_obj in Cluster.objects.filter(pk__in=attrs["infos"]["cluster_ids"]).all(): + for cluster_obj in Cluster.objects.filter(pk__in=attrs["cluster_ids"]).all(): if cluster_obj.bk_biz_id != attrs["bk_biz_id"]: raise serializers.ValidationError( _("{} 不是 [{}]{} 的集群".format(cluster_obj.immute_domain, app_obj.bk_biz_id, app_obj.db_app_abbr))