mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add newlines to FormatProgress for JSON as well
Commit 060da572d2
has introduced newlines
to streamformatter to help parse Remote API responses. However,
FormatProgress method was omitted from the list of patched methods,
leaving progress messages in, say, /images/create without newlines.
Signed-off-by: Roma Sokolov <sokolov.r.v@gmail.com>
This commit is contained in:
parent
b6fa541877
commit
e98b8e0857
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ func (sf *StreamFormatter) FormatProgress(id, action string, progress *jsonmessa
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return b
|
return append(b, streamNewlineBytes...)
|
||||||
}
|
}
|
||||||
endl := "\r"
|
endl := "\r"
|
||||||
if progress.String() == "" {
|
if progress.String() == "" {
|
||||||
|
|
Loading…
Reference in a new issue