mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #26282 from mstanleyjones/26280_fix_pretty_print
`docker node inspect <node> --pretty` needs an extra newline at the end
This commit is contained in:
commit
5c6b54c278
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue