mirror of
https://github.com/containers/podman.git
synced 2025-07-14 01:50:02 +08:00
API: Fix 'podman image search` missing description
`podman image search` returned wrong results for the image "Description" as it was mapped to the wrong field ("ID") in the search results. Basically cherry-picked into the api from commit cf5c63b5c492e41d72b6e3b6d75b5f39b0a957fd. Signed-off-by: Ralf Haferkamp <rhafer@suse.com>
This commit is contained in:
@ -677,7 +677,7 @@ func SearchImages(w http.ResponseWriter, r *http.Request) {
|
||||
for i := range searchResults {
|
||||
reports[i].Index = searchResults[i].Index
|
||||
reports[i].Name = searchResults[i].Name
|
||||
reports[i].Description = searchResults[i].Index
|
||||
reports[i].Description = searchResults[i].Description
|
||||
reports[i].Stars = searchResults[i].Stars
|
||||
reports[i].Official = searchResults[i].Official
|
||||
reports[i].Automated = searchResults[i].Automated
|
||||
|
Reference in New Issue
Block a user