0
Fork 0
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:
Andrei Aaron 2024-10-25 23:39:05 +03:00 committed by GitHub
parent f735680ce2
commit ca1eb76c7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -549,9 +549,10 @@ func IsBlobReferencedInImageIndex(imgStore storageTypes.ImageStore, repo string,
case ispec.MediaTypeImageManifest: case ispec.MediaTypeImageManifest:
found, _ = isBlobReferencedInImageManifest(imgStore, repo, digest, desc.Digest, log) found, _ = isBlobReferencedInImageManifest(imgStore, repo, digest, desc.Digest, log)
default: 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 // should return true for digests found in index.json even if we don't know it's mediatype
if digest == desc.Digest { 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 found = true
} }
} }