From 37e0314e79ccf06430e0bdc6df0f2ad5d1d0008a Mon Sep 17 00:00:00 2001 From: Drew Erny Date: Tue, 2 Aug 2016 13:27:35 -0700 Subject: [PATCH] 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 Upstream-commit: 02ebaf364ff0463c65d63fd1c3c11840a578fc45 Component: engine --- components/engine/api/client/service/inspect.go | 1 + 1 file changed, 1 insertion(+) diff --git a/components/engine/api/client/service/inspect.go b/components/engine/api/client/service/inspect.go index 31c300be8c..0893c5f457 100644 --- a/components/engine/api/client/service/inspect.go +++ b/components/engine/api/client/service/inspect.go @@ -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 {