Skip to content

Commit

Permalink
fix(dbm-services): fix other_domains is None #8987
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq authored and zhangzhw8 committed Jan 9, 2025
1 parent 409aa1e commit 8888198
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, root_id: str, data: Optional[Dict]) -> None:

def transfer_to_other_biz_flow(self):
other_domains = find_other_relation_domains(self.cluster_domain_list)
if len(other_domains) > 0:
if other_domains:
raise Exception(_("以下域名与当前业务存在关联,请先处理关联关系:{}".format(other_domains)))
clusters = Cluster.objects.filter(bk_biz_id=self.bk_biz_id, immute_domain__in=self.cluster_domain_list).all()
bk_cloud_ids = []
Expand Down

0 comments on commit 8888198

Please sign in to comment.