Merge pull request #27007 from allencloud/better-node-inspect-pretty

add \n in engine labels display in docker node inspect xxx --pretty
Upstream-commit: c29eee6e20b7818e8abf749fe57c46fa3d865f94
Component: engine
This commit is contained in:
Tõnis Tiigi
2016-09-29 09:53:59 -07:00
committed by GitHub
@@ -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)
}
}
}