'docker node inspect <node> --pretty' needs an extra newline at the end

Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Upstream-commit: 341489f1500873a6aa51998f49c1da7f7fd8eb5a
Component: engine
This commit is contained in:
Misty Stanley-Jones
2016-09-02 10:21:55 -07:00
parent 5aa0a2b82e
commit 7dd0d58809

View File

@ -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