Skip to content

Commit

Permalink
fix(mysql): 追加部署中控参数验证报错 #3658
Browse files Browse the repository at this point in the history
  • Loading branch information
xfwduke authored and zhangzhw8 committed Mar 22, 2024
1 parent 6936d38 commit 1d384be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 1d384be

Please sign in to comment.