mirror of https://github.com/docker/cli.git
add \n in engine labels display in docker node inspect xxx --pretty
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
5ca7909308
commit
65b1e54c73
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue