Skip to content

Commit ddec4c3

Browse files
committed
add \n in engine labels display in docker node inspect xxx --pretty
Signed-off-by: allencloud <allen.sun@daocloud.io>
1 parent ad398f1 commit ddec4c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cli/command/node/inspect.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ func printNode(out io.Writer, node swarm.Node) {
137137
if len(node.Description.Engine.Labels) != 0 {
138138
fmt.Fprintln(out, "Engine Labels:")
139139
for k, v := range node.Description.Engine.Labels {
140-
fmt.Fprintf(out, " - %s = %s", k, v)
140+
fmt.Fprintf(out, " - %s = %s\n", k, v)
141141
}
142142
}
143-
144143
}

0 commit comments

Comments
 (0)