Skip to content

Commit

Permalink
Fix missing newline in service inspect --pretty
Browse files Browse the repository at this point in the history
Printing off networks as part of --pretty was missing a newline, causing
the next thing printed to be concatenated onto the end of the line.
Added an empty println after all networks are printed.

Signed-off-by: Drew Erny <[email protected]>
  • Loading branch information
dperny committed Aug 2, 2016
1 parent 181f5ac commit 02ebaf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/client/service/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func printService(out io.Writer, service swarm.Service) {
for _, n := range service.Spec.Networks {
fmt.Fprintf(out, " %s", n.Target)
}
fmt.Fprintln(out, "")
}

if len(service.Endpoint.Ports) > 0 {
Expand Down

0 comments on commit 02ebaf3

Please sign in to comment.