From df1eb395c1543295e1470847821f6c18aac5921c 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 --- libimage/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimage/search.go b/libimage/search.go index df29bc7da..99884afa2 100644 --- a/libimage/search.go +++ b/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,