From b6cf6d87ae19015675ed48085b3a1a5e09bbdb35 Mon Sep 17 00:00:00 2001 From: Zachary Romero Date: Tue, 29 May 2018 05:30:17 +0300 Subject: [PATCH] Add String method so quieted output displays properly Fixes #1089 Signed-off-by: Zachary Romero --- cli/command/image/build_session.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/command/image/build_session.go b/cli/command/image/build_session.go index 897d237cd6..f33580bd70 100644 --- a/cli/command/image/build_session.go +++ b/cli/command/image/build_session.go @@ -122,6 +122,10 @@ func (bw *bufferedWriter) flushBuffer() { bw.mu.Unlock() } +func (bw *bufferedWriter) String() string { + return fmt.Sprintf("%s", bw.Writer) +} + func getBuildSharedKey(dir string) (string, error) { // build session is hash of build dir with node based randomness s := sha256.Sum256([]byte(fmt.Sprintf("%s:%s", tryNodeIdentifier(), dir)))