From 1c0fdba4f2cfbabadcbd16933882dbb2fb2e77f8 Mon Sep 17 00:00:00 2001 From: Aditya R Date: Fri, 21 Jan 2022 00:42:22 +0530 Subject: compat: remove hardcoded index from load images output report Signed-off-by: Aditya R --- pkg/api/handlers/compat/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') 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, ",")), }) } -- cgit v1.2.3-54-g00ecf