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:
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue