compat: remove hardcoded index from load images output report

Signed-off-by: Aditya R <arajan@redhat.com>
This commit is contained in:
Aditya R 2022-01-21 00:42:22 +05:30
parent 9df31cfb77
commit 1c0fdba4f2
No known key found for this signature in database
GPG Key ID: 8E5A8A19DF7C8673
1 changed files with 1 additions and 1 deletions

View File

@ -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, ",")),
})
}