summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya R <arajan@redhat.com>2022-01-21 00:42:22 +0530
committerAditya R <arajan@redhat.com>2022-01-21 00:46:17 +0530
commit1c0fdba4f2cfbabadcbd16933882dbb2fb2e77f8 (patch)
tree16c293b232173df6feffad357419965e00dca15f
parent9df31cfb7784b158308abc5eabb7ff5176011518 (diff)
downloadpodman-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.go2
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, ",")),
})
}