aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/handlers/generic/images.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-06 21:19:55 +0100
committerGitHub <noreply@github.com>2020-03-06 21:19:55 +0100
commitc3177b781b69b45e2a084b83d44c39abd8e94132 (patch)
treec0dfa81e817ce65ebfea730f7bc25bfb87543497 /pkg/api/handlers/generic/images.go
parent6365fab22bc519c6c16573e8407088215b42d435 (diff)
parent06f5664e9dc335e3cfc42475e8f807036312a801 (diff)
downloadpodman-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.go2
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 {