Skip to content

Commit

Permalink
fix(backend): 修复转移业务proxy machine 归属业务id未修改 #8429
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq authored and iSecloud committed Dec 5, 2024
1 parent 3ab0aa0 commit f7ea25d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func SyncDbRpDailySnapShot() (err error) {
city,
sub_zone,
sub_zone_id,
label,
labels,
status,
update_time,
create_time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def _execute(self, data, parent_data) -> bool:
Machine.objects.filter(storageinstance__cluster__immute_domain__in=cluster_domain_list).update(
bk_biz_id=target_biz_id, db_module_id=db_module_id
)
Machine.objects.filter(proxyinstance__cluster__immute_domain__in=cluster_domain_list).update(
bk_biz_id=target_biz_id, db_module_id=db_module_id
)
self.log_info("transfer cluster meta to other biz success")
return True

Expand Down

0 comments on commit f7ea25d

Please sign in to comment.