diff options
author | Ralf Haferkamp <rhafer@suse.com> | 2020-07-30 14:22:05 +0200 |
---|---|---|
committer | Ralf Haferkamp <rhafer@suse.com> | 2020-07-31 15:39:57 +0200 |
commit | bcbb5f9963e9b08ddaeb895d074e98f176a39bc0 (patch) | |
tree | 1da342dcf6e4cefbd995629f91ae165c38073686 /pkg/api | |
parent | ad2efbe9e1e2873e7c7f93804a9303bd2158857a (diff) | |
download | podman-bcbb5f9963e9b08ddaeb895d074e98f176a39bc0.tar.gz podman-bcbb5f9963e9b08ddaeb895d074e98f176a39bc0.tar.bz2 podman-bcbb5f9963e9b08ddaeb895d074e98f176a39bc0.zip |
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>
Diffstat (limited to 'pkg/api')
-rw-r--r-- | pkg/api/handlers/libpod/images.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/images.go b/pkg/api/handlers/libpod/images.go index 3421f0836..aaa2c4330 100644 --- a/pkg/api/handlers/libpod/images.go +++ b/pkg/api/handlers/libpod/images.go @@ -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 |