mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
fix(region): allow stopping the container in probe_failed status (#22873)
This commit is contained in:
@@ -630,6 +630,7 @@ func (c *SContainer) PerformStop(ctx context.Context, userCred mcclient.TokenCre
|
||||
if !sets.NewString(
|
||||
api.CONTAINER_STATUS_RUNNING,
|
||||
api.CONTAINER_STATUS_PROBING,
|
||||
api.CONTAINER_STATUS_PROBE_FAILED,
|
||||
api.CONTAINER_STATUS_STOP_FAILED).Has(c.Status) {
|
||||
return nil, httperrors.NewInvalidStatusError("Can't stop container in status %s", c.Status)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user