mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
chore: less confusing warning message when unexpected media type is found in index manifest list (#2746)
Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
parent
f735680ce2
commit
ca1eb76c7e
1 changed files with 2 additions and 1 deletions
|
@ -549,9 +549,10 @@ func IsBlobReferencedInImageIndex(imgStore storageTypes.ImageStore, repo string,
|
|||
case ispec.MediaTypeImageManifest:
|
||||
found, _ = isBlobReferencedInImageManifest(imgStore, repo, digest, desc.Digest, log)
|
||||
default:
|
||||
log.Warn().Str("mediatype", desc.MediaType).Msg("unknown media-type")
|
||||
// should return true for digests found in index.json even if we don't know it's mediatype
|
||||
if digest == desc.Digest {
|
||||
log.Debug().Str("mediatype", desc.MediaType).Str("digest", digest.String()).
|
||||
Msg("unexpected media-type found in image index manifest list")
|
||||
found = true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue