From ba319e3ba647ab199366ca3a8fd2ce60f0f2f10f Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Thu, 25 Feb 2021 13:45:41 +0100 Subject: [Compat API] Also print successfully tagging images in /build endpoint [NO TESTS NEEDED] Signed-off-by: Riyad Preukschas --- pkg/api/handlers/compat/images_build.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkg/api/handlers') diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go index d79b100e8..2c70352e0 100644 --- a/pkg/api/handlers/compat/images_build.go +++ b/pkg/api/handlers/compat/images_build.go @@ -395,6 +395,13 @@ loop: logrus.Warnf("Failed to json encode error %v", err) } flush() + for _, tag := range query.Tag { + m.Stream = fmt.Sprintf("Successfully tagged %s\n", tag) + if err := enc.Encode(m); err != nil { + logrus.Warnf("Failed to json encode error %v", err) + } + flush() + } } } break loop -- cgit v1.2.3-54-g00ecf