diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-03-06 21:19:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 21:19:55 +0100 |
commit | c3177b781b69b45e2a084b83d44c39abd8e94132 (patch) | |
tree | c0dfa81e817ce65ebfea730f7bc25bfb87543497 /pkg/api/handlers/generic/images.go | |
parent | 6365fab22bc519c6c16573e8407088215b42d435 (diff) | |
parent | 06f5664e9dc335e3cfc42475e8f807036312a801 (diff) | |
download | podman-c3177b781b69b45e2a084b83d44c39abd8e94132.tar.gz podman-c3177b781b69b45e2a084b83d44c39abd8e94132.tar.bz2 podman-c3177b781b69b45e2a084b83d44c39abd8e94132.zip |
Merge pull request #5410 from st1971/api-fixes
APIv2: compatible api fixes
Diffstat (limited to 'pkg/api/handlers/generic/images.go')
-rw-r--r-- | pkg/api/handlers/generic/images.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/generic/images.go b/pkg/api/handlers/generic/images.go index 1ced499d9..3da5807ec 100644 --- a/pkg/api/handlers/generic/images.go +++ b/pkg/api/handlers/generic/images.go @@ -305,7 +305,7 @@ func GetImages(w http.ResponseWriter, r *http.Request) { utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "Failed get images")) return } - var summaries = make([]*handlers.ImageSummary, len(images)+1) + var summaries = make([]*handlers.ImageSummary, len(images)) for j, img := range images { is, err := handlers.ImageToImageSummary(img) if err != nil { |