mirror of
https://github.com/containers/podman.git
synced 2025-06-27 05:26:50 +08:00
pkg, pods: honor --ignore for pod stop
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -145,7 +145,7 @@ func (ic *ContainerEngine) PodStop(ctx context.Context, namesOrIds []string, opt
|
|||||||
reports []*entities.PodStopReport
|
reports []*entities.PodStopReport
|
||||||
)
|
)
|
||||||
pods, err := getPodsByContext(options.All, options.Latest, namesOrIds, ic.Libpod)
|
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
|
return nil, err
|
||||||
}
|
}
|
||||||
for _, p := range pods {
|
for _, p := range pods {
|
||||||
|
Reference in New Issue
Block a user