add \n in engine labels display in docker node inspect xxx --pretty

Signed-off-by: allencloud <allen.sun@daocloud.io>
(cherry picked from commit ddec4c3ee4)
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
allencloud 2016-09-29 15:35:00 +08:00 committed by Victor Vieux
parent 16f11aef3c
commit defb41068c

View file

@ -137,8 +137,7 @@ func printNode(out io.Writer, node swarm.Node) {
if len(node.Description.Engine.Labels) != 0 { if len(node.Description.Engine.Labels) != 0 {
fmt.Fprintln(out, "Engine Labels:") fmt.Fprintln(out, "Engine Labels:")
for k, v := range node.Description.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)
} }
} }
} }