Skip to content

Commit

Permalink
fix(backend): dba人员顺序问题 #4924
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhw8 committed Jun 13, 2024
1 parent 2c9a53e commit e0647e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbm-ui/backend/configuration/handlers/dba.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def upsert_biz_admins(bk_biz_id: int, db_admins: List[Dict[str, Union[str, List[
new_dba = dba["users"]
platform_dba = db_type_platform_dba.get(db_type, [])
biz_dba = db_type_biz_dba.get(db_type, [])
if set(new_dba) == set(platform_dba) and not biz_dba:
if new_dba == platform_dba and not biz_dba:
# 业务新设置的与平台人员一致,则无需新建
continue
if set(new_dba) == set(biz_dba):
if new_dba == biz_dba:
# 新 DBA 与 旧DBA 一致,也无需更新
continue
dba_obj, created = DBAdministrator.objects.update_or_create(
Expand Down

0 comments on commit e0647e4

Please sign in to comment.