mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
Merge pull request #12908 from rainzm/automated-cherry-pick-of-#12906-upstream-release-3.7
Automated cherry pick of #12906: fix(region): respect disk's snapshotId in disk_batch_create_task
This commit is contained in:
@@ -171,7 +171,7 @@ func (self *DiskBatchCreateTask) startCreateDisk(ctx context.Context, disk *mode
|
||||
quotas.CancelPendingUsage(ctx, self.UserCred, &pendingUsage, "aStorage, true) // success
|
||||
self.SetPendingUsage(&pendingUsage, 0)
|
||||
|
||||
disk.StartDiskCreateTask(ctx, self.GetUserCred(), false, "", self.GetTaskId())
|
||||
disk.StartDiskCreateTask(ctx, self.GetUserCred(), false, disk.SnapshotId, self.GetTaskId())
|
||||
}
|
||||
|
||||
func (self *DiskBatchCreateTask) OnScheduleComplete(ctx context.Context, items []db.IStandaloneModel, data *jsonutils.JSONDict) {
|
||||
|
||||
Reference in New Issue
Block a user