mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Automatic merge from release/2.5.0 -> release/2.6.0
* commit 'aa6555c64739abf7e489a68f26665e5659a868bb': 修正: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