Browse Source

Merge pull request #26282 from mstanleyjones/26280_fix_pretty_print

`docker node inspect <node> --pretty`  needs an extra newline at the end
Vincent Demeester 8 years ago
parent
commit
5c6b54c278
1 changed files with 2 additions and 0 deletions
  1. 2 0
      api/client/node/inspect.go

+ 2 - 0
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