summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-03-10 14:04:51 +0100
committerGitHub <noreply@github.com>2021-03-10 14:04:51 +0100
commit786757fb01208cf72e1c67611acbab1411746036 (patch)
treebf5913f1abfc434f5dc3a2fb7684c7dc416aa296 /pkg/domain/infra/abi
parent5331096b3882cd5c8e587200560e44ef1eb990a3 (diff)
parentf1eb8e816257d9dc810cfa6957e09db1ffa7db96 (diff)
downloadpodman-786757fb01208cf72e1c67611acbab1411746036.tar.gz
podman-786757fb01208cf72e1c67611acbab1411746036.tar.bz2
podman-786757fb01208cf72e1c67611acbab1411746036.zip
Merge pull request #9681 from rhatdan/rm
Removing a non existing container API should return 404
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r--pkg/domain/infra/abi/containers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go
index 4790bd58c..637531ee9 100644
--- a/pkg/domain/infra/abi/containers.go
+++ b/pkg/domain/infra/abi/containers.go
@@ -301,14 +301,14 @@ func (ic *ContainerEngine) ContainerRm(ctx context.Context, namesOrIds []string,
for _, ctr := range names {
logrus.Debugf("Evicting container %q", ctr)
report := entities.RmReport{Id: ctr}
- id, err := ic.Libpod.EvictContainer(ctx, ctr, options.Volumes)
+ _, err := ic.Libpod.EvictContainer(ctx, ctr, options.Volumes)
if err != nil {
if options.Ignore && errors.Cause(err) == define.ErrNoSuchCtr {
logrus.Debugf("Ignoring error (--allow-missing): %v", err)
reports = append(reports, &report)
continue
}
- report.Err = errors.Wrapf(err, "failed to evict container: %q", id)
+ report.Err = err
reports = append(reports, &report)
continue
}