mirror of https://github.com/containers/podman.git
Merge pull request #23493 from rhatdan/buildah
Ignore missing containers when calling GetExternalContainerLists
This commit is contained in:
commit
63ec8293ee
|
|
@ -122,6 +122,9 @@ func GetExternalContainerLists(runtime *libpod.Runtime) ([]entities.ListContaine
|
||||||
switch {
|
switch {
|
||||||
case errors.Is(err, types.ErrLoadError):
|
case errors.Is(err, types.ErrLoadError):
|
||||||
continue
|
continue
|
||||||
|
// Container could have been removed since listing
|
||||||
|
case errors.Is(err, types.ErrContainerUnknown):
|
||||||
|
continue
|
||||||
case err != nil:
|
case err != nil:
|
||||||
return nil, err
|
return nil, err
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue