summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-04-27 13:19:05 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-04-27 13:19:05 +0200
commite589c2219f0e608b01b66d54856b40cc6de94693 (patch)
tree64036aedfcfe7c6edc31607ee69d54605ae2f3e3 /pkg
parent9a633bd2f5493dd775525a925489aad596eca839 (diff)
downloadpodman-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')
-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 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 {