diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-27 13:44:15 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-27 13:47:52 +0200 |
commit | 1aaef86eb4e90ef6ce973a90a5a2b82aff78f4bf (patch) | |
tree | 62079e4c321c1364a677be1d5518536e2f9628e3 /pkg | |
parent | 196e12f18543357ed8284ca3eaf2258b1783e248 (diff) | |
download | podman-1aaef86eb4e90ef6ce973a90a5a2b82aff78f4bf.tar.gz podman-1aaef86eb4e90ef6ce973a90a5a2b82aff78f4bf.tar.bz2 podman-1aaef86eb4e90ef6ce973a90a5a2b82aff78f4bf.zip |
pkg, pods: pod rm honors --ignore
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/domain/infra/abi/pods.go | 2 |
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 { |