diff options
author | Aditya R <arajan@redhat.com> | 2022-01-21 00:42:22 +0530 |
---|---|---|
committer | Aditya R <arajan@redhat.com> | 2022-01-21 00:46:17 +0530 |
commit | 1c0fdba4f2cfbabadcbd16933882dbb2fb2e77f8 (patch) | |
tree | 16c293b232173df6feffad357419965e00dca15f | |
parent | 9df31cfb7784b158308abc5eabb7ff5176011518 (diff) | |
download | podman-1c0fdba4f2cfbabadcbd16933882dbb2fb2e77f8.tar.gz podman-1c0fdba4f2cfbabadcbd16933882dbb2fb2e77f8.tar.bz2 podman-1c0fdba4f2cfbabadcbd16933882dbb2fb2e77f8.zip |
compat: remove hardcoded index from load images output report
Signed-off-by: Aditya R <arajan@redhat.com>
-rw-r--r-- | pkg/api/handlers/compat/images.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/images.go b/pkg/api/handlers/compat/images.go index 4abd510bf..401a7ec1b 100644 --- a/pkg/api/handlers/compat/images.go +++ b/pkg/api/handlers/compat/images.go @@ -511,7 +511,7 @@ func LoadImages(w http.ResponseWriter, r *http.Request) { utils.WriteResponse(w, http.StatusOK, struct { Stream string `json:"stream"` }{ - Stream: fmt.Sprintf("Loaded image: %s\n", loadReport.Names[0]), + Stream: fmt.Sprintf("Loaded image: %s", strings.Join(loadReport.Names, ",")), }) } |