Skip to content

Commit

Permalink
fix(backend): dba 人员保存报错的问题 TencentBlueKing#7040
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhw8 committed Sep 20, 2024
1 parent 8c786a2 commit 9a4817d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbm-ui/backend/configuration/handlers/dba.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a4817d

Please sign in to comment.