aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-04-27 13:44:15 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-04-27 13:47:52 +0200
commit1aaef86eb4e90ef6ce973a90a5a2b82aff78f4bf (patch)
tree62079e4c321c1364a677be1d5518536e2f9628e3
parent196e12f18543357ed8284ca3eaf2258b1783e248 (diff)
downloadpodman-1aaef86eb4e90ef6ce973a90a5a2b82aff78f4bf.tar.gz
podman-1aaef86eb4e90ef6ce973a90a5a2b82aff78f4bf.tar.bz2
podman-1aaef86eb4e90ef6ce973a90a5a2b82aff78f4bf.zip
pkg, pods: pod rm honors --ignore
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--pkg/domain/infra/abi/pods.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/pods.go b/pkg/domain/infra/abi/pods.go
index 49f9f2771..3a71a3253 100644
--- a/pkg/domain/infra/abi/pods.go
+++ b/pkg/domain/infra/abi/pods.go
@@ -228,7 +228,7 @@ func (ic *ContainerEngine) PodRm(ctx context.Context, namesOrIds []string, optio
reports []*entities.PodRmReport
)
pods, err := getPodsByContext(options.All, options.Latest, namesOrIds, ic.Libpod)
- if err != nil {
+ if err != nil && !(options.Ignore && errors.Cause(err) == define.ErrNoSuchPod) {
return nil, err
}
for _, p := range pods {