Skip to content

Commit

Permalink
Merge pull request #3030 from tonistiigi/outline-print-fix
Browse files Browse the repository at this point in the history
dockerfile: fix writing to wrong writer for outline response
  • Loading branch information
tonistiigi committed Aug 16, 2022
2 parents 4e35fed + 5f38d18 commit 55ba9d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/subrequests/outline/outline.go
Expand Up @@ -101,7 +101,7 @@ func PrintOutline(dt []byte, w io.Writer) error {
fmt.Fprintf(tw, "DESCRIPTION:\t%s\n", o.Description)
}
tw.Flush()
fmt.Println()
fmt.Fprintln(tw)
}

if len(o.Args) > 0 {
Expand All @@ -111,7 +111,7 @@ func PrintOutline(dt []byte, w io.Writer) error {
fmt.Fprintf(tw, "%s\t%s\t%s\n", a.Name, a.Value, a.Description)
}
tw.Flush()
fmt.Println()
fmt.Fprintln(tw)
}

if len(o.Secrets) > 0 {
Expand All @@ -125,7 +125,7 @@ func PrintOutline(dt []byte, w io.Writer) error {
fmt.Fprintf(tw, "%s\t%s\n", s.Name, b)
}
tw.Flush()
fmt.Println()
fmt.Fprintln(tw)
}

if len(o.SSH) > 0 {
Expand All @@ -139,7 +139,7 @@ func PrintOutline(dt []byte, w io.Writer) error {
fmt.Fprintf(tw, "%s\t%s\n", s.Name, b)
}
tw.Flush()
fmt.Println()
fmt.Fprintln(tw)
}

return nil
Expand Down

0 comments on commit 55ba9d1

Please sign in to comment.