mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #4374 from rainzm/bugfix/suspend_status
fix(region): fix the status when start to suspend vm
This commit is contained in:
@@ -746,7 +746,7 @@ func (self *SGuest) PerformSuspend(ctx context.Context, userCred mcclient.TokenC
|
||||
}
|
||||
|
||||
func (self *SGuest) StartSuspendTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error {
|
||||
err := self.SetStatus(userCred, api.VM_SUSPEND, "do suspend")
|
||||
err := self.SetStatus(userCred, api.VM_START_SUSPEND, "do suspend")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user