diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-01-14 15:34:15 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-01-15 09:13:45 -0700 |
commit | 89678ab0edb0429adc515b7abfedb69db7323bde (patch) | |
tree | 58eb1065d53f5d90a6cb4185d9b0b960f8316907 /pkg/api | |
parent | ad5137bc7b346ef2e28eb85c872728b6748bc629 (diff) | |
download | podman-89678ab0edb0429adc515b7abfedb69db7323bde.tar.gz podman-89678ab0edb0429adc515b7abfedb69db7323bde.tar.bz2 podman-89678ab0edb0429adc515b7abfedb69db7323bde.zip |
Add APIv2 CLI example POC
* Add ReadMe, CLI and unit files to support socket activation, both for
system and rootless
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/api')
-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 { |