瀏覽代碼

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>
Drew Erny 9 年之前
父節點
當前提交
02ebaf364f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      api/client/service/inspect.go

+ 1 - 0
api/client/service/inspect.go

@@ -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 {