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)