Merge pull request #4625 from dcantah/fix-removesandbox-comment

Fix comment in RemovePodSandbox
This commit is contained in:
Phil Estes 2020-10-13 07:50:02 -04:00 committed by GitHub
commit e4e05c6c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ func (c *criService) RemovePodSandbox(ctx context.Context, r *runtime.RemovePodS
// Use the full sandbox id.
id := sandbox.ID
// Return error if sandbox container is still running or unknown.
// If the sandbox is still running or in an unknown state, forcibly stop it.
state := sandbox.Status.Get().State
if state == sandboxstore.StateReady || state == sandboxstore.StateUnknown {
logrus.Infof("Forcibly stopping sandbox %q", id)