mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #27007 from allencloud/better-node-inspect-pretty
add \n in engine labels display in docker node inspect xxx --pretty
This commit is contained in:
commit
c29eee6e20
1 changed files with 1 additions and 2 deletions
|
@ -137,8 +137,7 @@ func printNode(out io.Writer, node swarm.Node) {
|
|||
if len(node.Description.Engine.Labels) != 0 {
|
||||
fmt.Fprintln(out, "Engine Labels:")
|
||||
for k, v := range node.Description.Engine.Labels {
|
||||
fmt.Fprintf(out, " - %s = %s", k, v)
|
||||
fmt.Fprintf(out, " - %s = %s\n", k, v)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue