diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-11 17:55:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-11 17:55:00 +0100 |
commit | 8d33bfabaa20612718d909494c2ceec26482d279 (patch) | |
tree | b630da802a193647a861f562d70293db83e43df8 /pkg/api/handlers | |
parent | e2d35e55d0ad77fcaca5bbe90276e9c47d514131 (diff) | |
parent | ba319e3ba647ab199366ca3a8fd2ce60f0f2f10f (diff) | |
download | podman-8d33bfabaa20612718d909494c2ceec26482d279.tar.gz podman-8d33bfabaa20612718d909494c2ceec26482d279.tar.bz2 podman-8d33bfabaa20612718d909494c2ceec26482d279.zip |
Merge pull request #9524 from riyad/apiv3-print-tags-when-building
[Compat API] Also print successfully tagging images in /build endpoint
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r-- | pkg/api/handlers/compat/images_build.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go index 392f688dd..7751b91a7 100644 --- a/pkg/api/handlers/compat/images_build.go +++ b/pkg/api/handlers/compat/images_build.go @@ -445,6 +445,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 |