From e98b8e08575d28e4cc15fbd64111c42b86841e4c Mon Sep 17 00:00:00 2001 From: Roma Sokolov Date: Wed, 28 Oct 2015 12:49:54 +0000 Subject: [PATCH] Add newlines to FormatProgress for JSON as well Commit 060da572d20dfeee4fe02ce6b975a6cb33e50dbe 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 --- pkg/streamformatter/streamformatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/streamformatter/streamformatter.go b/pkg/streamformatter/streamformatter.go index 7b7ad12405..d3ac39ebdb 100644 --- a/pkg/streamformatter/streamformatter.go +++ b/pkg/streamformatter/streamformatter.go @@ -83,7 +83,7 @@ func (sf *StreamFormatter) FormatProgress(id, action string, progress *jsonmessa if err != nil { return nil } - return b + return append(b, streamNewlineBytes...) } endl := "\r" if progress.String() == "" {