mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-20 21:26:01 +08:00
fix(region): not sync status when attaching and detaching disk (#21605)
This commit is contained in:
@@ -479,7 +479,7 @@ func (self *SKVMGuestDriver) RequestDetachDisk(ctx context.Context, guest *model
|
||||
}
|
||||
|
||||
func (self *SKVMGuestDriver) RequestAttachDisk(ctx context.Context, guest *models.SGuest, disk *models.SDisk, task taskman.ITask) error {
|
||||
return guest.StartSyncTask(
|
||||
return guest.StartSyncTaskWithoutSyncstatus(
|
||||
ctx,
|
||||
task.GetUserCred(),
|
||||
jsonutils.QueryBoolean(task.GetParams(), "sync_desc_only", false),
|
||||
|
||||
@@ -89,7 +89,7 @@ func (self *GuestDetachDiskTask) OnGetGuestStatus(ctx context.Context, guest *mo
|
||||
}
|
||||
|
||||
self.SetStage("OnDetachDiskComplete", nil)
|
||||
if err := guest.StartSyncTask(
|
||||
if err := guest.StartSyncTaskWithoutSyncstatus(
|
||||
ctx, self.GetUserCred(), jsonutils.QueryBoolean(self.GetParams(), "sync_desc_only", false), self.GetTaskId(),
|
||||
); err != nil {
|
||||
self.OnDetachDiskCompleteFailed(ctx, guest, jsonutils.NewString(err.Error()))
|
||||
|
||||
Reference in New Issue
Block a user