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.

Signed-off-by: Ralf Haferkamp <rhafer@suse.com>
This commit is contained in:
Ralf Haferkamp
2020-07-29 10:56:00 +02:00
parent 7f0c0941e8
commit cf5c63b5c4

View File

@ -520,7 +520,7 @@ func (ir *ImageEngine) Search(ctx context.Context, term string, opts entities.Im
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