1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix missing newline in service inspect --pretty

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 <drew.erny@docker.com>
This commit is contained in:
Drew Erny 2016-08-02 13:27:35 -07:00
parent 181f5ac627
commit 02ebaf364f

View file

@ -149,6 +149,7 @@ func printService(out io.Writer, service swarm.Service) {
for _, n := range service.Spec.Networks { for _, n := range service.Spec.Networks {
fmt.Fprintf(out, " %s", n.Target) fmt.Fprintf(out, " %s", n.Target)
} }
fmt.Fprintln(out, "")
} }
if len(service.Endpoint.Ports) > 0 { if len(service.Endpoint.Ports) > 0 {