From 26d812259473071d03f575a7ae1eca1b7e7668b6 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 18 May 2018 14:46:23 +0200 Subject: [PATCH] Fix component information alignment The `docker version` output now uses a tabwriter, so use single tabs to print the output. Before this change: Server: Engine: Version: 18.05.0-ce API version: 1.37 (minimum version 1.12) Go version: go1.10.1 Git commit: f150324 Built: Wed May 9 22:20:16 2018 OS/Arch: linux/amd64 Experimental: true Kubernetes: Version: v1.9.6 StackAPI: v1beta2 After this change: Server: Engine: Version: 18.05.0-ce API version: 1.37 (minimum version 1.12) Go version: go1.10.1 Git commit: f150324 Built: Wed May 9 22:20:16 2018 OS/Arch: linux/amd64 Experimental: true Kubernetes: Version: v1.9.6 StackAPI: v1beta2 Signed-off-by: Sebastiaan van Stijn --- cli/command/system/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/system/version.go b/cli/command/system/version.go index d236c476ed..d50dc847a3 100644 --- a/cli/command/system/version.go +++ b/cli/command/system/version.go @@ -48,7 +48,7 @@ Server:{{if ne .Platform.Name ""}} {{.Platform.Name}}{{end}} Version: {{$component.Version}} {{- $detailsOrder := getDetailsOrder $component}} {{- range $key := $detailsOrder}} - {{$key}}: {{index $component.Details $key}} + {{$key}}: {{index $component.Details $key}} {{- end}} {{- end}} {{- end}}