summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-01-15 18:14:11 +0100
committerGitHub <noreply@github.com>2020-01-15 18:14:11 +0100
commit974373f2b3202b93e33251dcc5b14f3274cc0796 (patch)
tree8897ebca7123e858d3babe4e13edb16cb55ce6f0 /pkg/api
parente025b43060e7d9841dfdc7c9bfca93c7d99241b4 (diff)
parent89678ab0edb0429adc515b7abfedb69db7323bde (diff)
downloadpodman-974373f2b3202b93e33251dcc5b14f3274cc0796.tar.gz
podman-974373f2b3202b93e33251dcc5b14f3274cc0796.tar.bz2
podman-974373f2b3202b93e33251dcc5b14f3274cc0796.zip
Merge pull request #4868 from jwhonce/wip/sshd
[CI:DOCS] Add APIv2 CLI example POC
Diffstat (limited to 'pkg/api')
-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 8029ee861..395f64064 100644
--- a/pkg/api/handlers/generic/images.go
+++ b/pkg/api/handlers/generic/images.go
@@ -350,7 +350,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))
+ var summaries = make([]*handlers.ImageSummary, len(images)+1)
for j, img := range images {
is, err := handlers.ImageToImageSummary(img)
if err != nil {