From 9a4817d00170dd551f5367c0a645bc3f2d87116c Mon Sep 17 00:00:00 2001 From: durant <826035498@qq.com> Date: Fri, 20 Sep 2024 15:08:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(backend):=20dba=20=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20#7040?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/backend/configuration/handlers/dba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbm-ui/backend/configuration/handlers/dba.py b/dbm-ui/backend/configuration/handlers/dba.py index a718351d53..08b6103408 100644 --- a/dbm-ui/backend/configuration/handlers/dba.py +++ b/dbm-ui/backend/configuration/handlers/dba.py @@ -57,7 +57,7 @@ def upsert_biz_admins(bk_biz_id: int, db_admins: List[Dict[str, Union[str, List[ operator = new_dba[0] bk_bak_operator = new_dba[1] if len(new_dba) > 1 else operator cluster_types = ClusterType.db_type_to_cluster_types(db_type) - for cluster_type in cluster_types: + for cluster_type in cluster_types or []: bk_host_ids = [ machine.bk_host_id for machine in Machine.objects.filter(cluster_type=cluster_type, bk_biz_id=bk_biz_id)