pkg, pods: pod rm honors --ignore

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2020-04-27 13:44:15 +02:00
parent 196e12f185
commit 1aaef86eb4
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ func (ic *ContainerEngine) PodRm(ctx context.Context, namesOrIds []string, optio
reports []*entities.PodRmReport reports []*entities.PodRmReport
) )
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 {