Fix missing newline in service inspect --pretty
Printing off networks as part of --pretty was missing a newline, causing
the next thing printed to be concatenated onto the end of the line.
Added an empty println after all networks are printed.
Signed-off-by: Drew Erny <drew.erny@docker.com>
(cherry picked from commit 02ebaf364f
)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
caaf53ad3e
commit
b0bff4d8d2
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@ func printService(out io.Writer, service swarm.Service) {
|
|||
for _, n := range service.Spec.Networks {
|
||||
fmt.Fprintf(out, " %s", n.Target)
|
||||
}
|
||||
fmt.Fprintln(out, "")
|
||||
}
|
||||
|
||||
if len(service.Endpoint.Ports) > 0 {
|
||||
|
|
Loading…
Reference in a new issue