Skip to content

Commit

Permalink
fix: 修复未写入db_module_id TencentBlueKing#7186
Browse files Browse the repository at this point in the history
  • Loading branch information
zfrendo committed Sep 30, 2024
1 parent 322a2c7 commit cbf5ee7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def storage_create(
)

api.machine.create(machines=machines, creator=creator, bk_cloud_id=bk_cloud_id)
machines = Machine.objects.filter(bk_cloud_id=bk_cloud_id, ip__in=[machine_ips])
machines.update(db_module_id=cluster.db_module_id)
machine_objects = Machine.objects.filter(bk_cloud_id=bk_cloud_id, ip__in=[machine_ips])
machine_objects.update(db_module_id=cluster.db_module_id)
api.storage_instance.create(
instances=storages, creator=creator, time_zone=time_zone, status=InstanceStatus.RESTORING
)
Expand Down

0 comments on commit cbf5ee7

Please sign in to comment.