Skip to content

Commit

Permalink
Docker compat build api - make sure only one line appears per flush
Browse files Browse the repository at this point in the history
Closes containers#16360

Signed-off-by: Jake Torrance <[email protected]>
Signed-off-by: Jake Torrance <[email protected]>
  • Loading branch information
jakegt1 committed Nov 6, 2022
1 parent d319860 commit cdb0033
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/handlers/compat/images_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
if err := enc.Encode(m); err != nil {
logrus.Warnf("failed to json encode error %v", err)
}
flush()
m.Aux = nil
m.Stream = fmt.Sprintf("Successfully built %12.12s\n", imageID)
if err := enc.Encode(m); err != nil {
Expand Down

0 comments on commit cdb0033

Please sign in to comment.