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))