mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
[Compat API] Also print successfully tagging images in /build endpoint
[NO TESTS NEEDED] Signed-off-by: Riyad Preukschas <riyad@informatik.uni-bremen.de>
This commit is contained in:
@ -395,6 +395,13 @@ loop:
|
|||||||
logrus.Warnf("Failed to json encode error %v", err)
|
logrus.Warnf("Failed to json encode error %v", err)
|
||||||
}
|
}
|
||||||
flush()
|
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
|
break loop
|
||||||
|
@ -652,6 +652,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// example: |
|
// example: |
|
||||||
// (build details...)
|
// (build details...)
|
||||||
// Successfully built 8ba084515c724cbf90d447a63600c0a6
|
// Successfully built 8ba084515c724cbf90d447a63600c0a6
|
||||||
|
// Successfully tagged your_image:latest
|
||||||
// 400:
|
// 400:
|
||||||
// $ref: "#/responses/BadParamError"
|
// $ref: "#/responses/BadParamError"
|
||||||
// 500:
|
// 500:
|
||||||
@ -1485,7 +1486,6 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// description: output from build process
|
// description: output from build process
|
||||||
// example: |
|
// example: |
|
||||||
// (build details...)
|
// (build details...)
|
||||||
// Successfully built 8ba084515c724cbf90d447a63600c0a6
|
|
||||||
// 400:
|
// 400:
|
||||||
// $ref: "#/responses/BadParamError"
|
// $ref: "#/responses/BadParamError"
|
||||||
// 500:
|
// 500:
|
||||||
|
Reference in New Issue
Block a user