Skip to content

Commit

Permalink
libimage: Return the full registry domain when searching
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jelly committed Oct 5, 2021
1 parent 70021c9 commit df1eb39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libimage/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit df1eb39

Please sign in to comment.