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

Signed-off-by: Misty Stanley-Jones <misty@docker.com>
This commit is contained in:
Misty Stanley-Jones 2016-09-02 10:21:55 -07:00
parent 75f589a979
commit 341489f150

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 // print extra space between objects, but not after the last one
if idx+1 != len(refs) { if idx+1 != len(refs) {
fmt.Fprintf(out, "\n\n") fmt.Fprintf(out, "\n\n")
} else {
fmt.Fprintf(out, "\n")
} }
} }
return nil return nil