c8d/list: Handle missing configs in label filter

Don't error out the filter if an image config is missing.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski 2024-03-18 10:29:16 +01:00
parent 6f3892dc99
commit 89dc2860ba
No known key found for this signature in database
GPG key ID: B85EFCFE26DEF92A

View file

@ -568,6 +568,9 @@ func setupLabelFilter(store content.Store, fltrs filters.Args) (func(image image
}
var cfg configLabels
if err := readConfig(ctx, store, desc, &cfg); err != nil {
if errdefs.IsNotFound(err) {
return nil, nil
}
return nil, err
}