From ecbdf8b9ce5f5c041aead5845fa12e9c3453cbff Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Tue, 5 Oct 2021 11:05:38 +0200 Subject: [PATCH] libimage: Return the full registry domain when searching Searching for images in registry.fedoraproject.org returns fedoraproject.org as registry in the search results. When relying on the Index to group results from different registries this is an issue. Signed-off-by: Jelle van der Waa --- common/libimage/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/libimage/search.go b/common/libimage/search.go index df29bc7da7..99884afa2f 100644 --- a/common/libimage/search.go +++ b/common/libimage/search.go @@ -244,7 +244,7 @@ func (r *Runtime) searchImageInRegistry(ctx context.Context, term, registry stri name = index + "/library/" + results[i].Name } params := SearchResult{ - Index: index, + Index: registry, Name: name, Description: description, Official: official,