summaryrefslogtreecommitdiff
path: root/pkg/api/handlers
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2021-02-25 13:45:41 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2021-02-25 21:06:18 +0100
commitba319e3ba647ab199366ca3a8fd2ce60f0f2f10f (patch)
tree427bcdf084ec3b6286de5595dda8bf90256c2501 /pkg/api/handlers
parentb220d6cd06360d6b868cd7fb7c32d2602aab69a5 (diff)
downloadpodman-ba319e3ba647ab199366ca3a8fd2ce60f0f2f10f.tar.gz
podman-ba319e3ba647ab199366ca3a8fd2ce60f0f2f10f.tar.bz2
podman-ba319e3ba647ab199366ca3a8fd2ce60f0f2f10f.zip
[Compat API] Also print successfully tagging images in /build endpoint
[NO TESTS NEEDED] Signed-off-by: Riyad Preukschas <riyad@informatik.uni-bremen.de>
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r--pkg/api/handlers/compat/images_build.go7
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 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