From 341489f1500873a6aa51998f49c1da7f7fd8eb5a Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Fri, 2 Sep 2016 10:21:55 -0700 Subject: [PATCH] 'docker node inspect --pretty' needs an extra newline at the end Signed-off-by: Misty Stanley-Jones --- api/client/node/inspect.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/client/node/inspect.go b/api/client/node/inspect.go index 835c784e05..6fcd78e932 100644 --- a/api/client/node/inspect.go +++ b/api/client/node/inspect.go @@ -71,6 +71,8 @@ func printHumanFriendly(out io.Writer, refs []string, getRef inspect.GetRefFunc) // print extra space between objects, but not after the last one if idx+1 != len(refs) { fmt.Fprintf(out, "\n\n") + } else { + fmt.Fprintf(out, "\n") } } return nil