diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-27 13:19:05 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-27 13:19:05 +0200 |
commit | e589c2219f0e608b01b66d54856b40cc6de94693 (patch) | |
tree | 64036aedfcfe7c6edc31607ee69d54605ae2f3e3 /pkg/domain/infra | |
parent | 9a633bd2f5493dd775525a925489aad596eca839 (diff) | |
download | podman-e589c2219f0e608b01b66d54856b40cc6de94693.tar.gz podman-e589c2219f0e608b01b66d54856b40cc6de94693.tar.bz2 podman-e589c2219f0e608b01b66d54856b40cc6de94693.zip |
pkg, pods: honor --ignore for pod stop
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/domain/infra')
-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 7732d5aa3..2d1c09670 100644 --- a/pkg/domain/infra/abi/pods.go +++ b/pkg/domain/infra/abi/pods.go @@ -145,7 +145,7 @@ func (ic *ContainerEngine) PodStop(ctx context.Context, namesOrIds []string, opt reports []*entities.PodStopReport ) 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 { |