mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
Merge pull request #927 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:hotfix/qj-fix-typo-20190115 to release/2.5.0
* commit 'd6a416acb258040a1d1b78907b357a3993744ea3': 修正:status检查主体引用错误
This commit is contained in:
@@ -339,7 +339,7 @@ func (self *SHost) PerformUndoPrepaidRecycle(ctx context.Context, userCred mccli
|
||||
}
|
||||
|
||||
if !guests[0].IsInStatus(VM_READY, VM_RUNNING) {
|
||||
return nil, httperrors.NewInvalidStatusError("cannot undo recycle in status %s", self.Status)
|
||||
return nil, httperrors.NewInvalidStatusError("cannot undo recycle in status %s", guests[0].Status)
|
||||
}
|
||||
|
||||
if guests[0].PendingDeleted {
|
||||
|
||||
Reference in New Issue
Block a user