diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-15 18:14:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 18:14:11 +0100 |
commit | 974373f2b3202b93e33251dcc5b14f3274cc0796 (patch) | |
tree | 8897ebca7123e858d3babe4e13edb16cb55ce6f0 /pkg/api/handlers | |
parent | e025b43060e7d9841dfdc7c9bfca93c7d99241b4 (diff) | |
parent | 89678ab0edb0429adc515b7abfedb69db7323bde (diff) | |
download | podman-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/handlers')
-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 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 { |