From f4ea25992a4908394e7dd7d6448df0b989763e64 Mon Sep 17 00:00:00 2001 From: Mikalai Radchuk <509198+m1kola@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:11:32 +0200 Subject: [PATCH] Fix cache check (#1202) Signed-off-by: Mikalai Radchuk --- internal/catalogmetadata/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/catalogmetadata/cache/cache.go b/internal/catalogmetadata/cache/cache.go index 419eef096..f5c8a52eb 100644 --- a/internal/catalogmetadata/cache/cache.go +++ b/internal/catalogmetadata/cache/cache.go @@ -119,7 +119,7 @@ func (fsc *filesystemCache) FetchCatalogContents(ctx context.Context, catalog *c // this to be the same value, skip the write logic and return // the cached contents if data, ok := fsc.cacheDataByCatalogName[catalog.Name]; ok { - if data.ResolvedRef == catalog.Status.ResolvedSource.Image.Ref { + if data.ResolvedRef == catalog.Status.ResolvedSource.Image.ResolvedRef { return os.DirFS(cacheDir), nil } }