diff options
author | Ralf Haferkamp <rhafer@suse.com> | 2020-07-29 10:56:00 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-07-31 09:32:15 +0200 |
commit | 6d7e50891490682b86ab3f4a71cb6e8a7530c8b6 (patch) | |
tree | 773050bba3b4d0bf9055b50ab270d1ae31ca1138 | |
parent | eea6bd1cf45746e754e2cceb76f8eb638bcad718 (diff) | |
download | podman-6d7e50891490682b86ab3f4a71cb6e8a7530c8b6.tar.gz podman-6d7e50891490682b86ab3f4a71cb6e8a7530c8b6.tar.bz2 podman-6d7e50891490682b86ab3f4a71cb6e8a7530c8b6.zip |
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>
-rw-r--r-- | pkg/domain/infra/abi/images.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go index 3393275b8..9f594d728 100644 --- a/pkg/domain/infra/abi/images.go +++ b/pkg/domain/infra/abi/images.go @@ -402,7 +402,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 |