From defb41068cea8a8f5678bd2d246d32ec9a113c43 Mon Sep 17 00:00:00 2001 From: allencloud Date: Thu, 29 Sep 2016 15:35:00 +0800 Subject: [PATCH] add \n in engine labels display in docker node inspect xxx --pretty Signed-off-by: allencloud (cherry picked from commit ddec4c3ee4e51cb62060f752777bdd32e86607e3) Signed-off-by: Victor Vieux --- api/client/node/inspect.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/client/node/inspect.go b/api/client/node/inspect.go index 6fcd78e932..6877d94f53 100644 --- a/api/client/node/inspect.go +++ b/api/client/node/inspect.go @@ -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) } } - }