From 505728a70e7e27d22e95a9bc4dcb543be3d51ae1 Mon Sep 17 00:00:00 2001 From: ncabatoff Date: Fri, 7 Aug 2020 08:54:23 -0400 Subject: [PATCH] Use printf field widths instead of strings.Repeat. (#9681) --- command/server.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/command/server.go b/command/server.go index b974b729b250..bbe44dfe4826 100644 --- a/command/server.go +++ b/command/server.go @@ -1513,16 +1513,12 @@ CLUSTER_SYNTHESIS_COMPLETE: infoKeys = append(infoKeys, "go version") info["go version"] = runtime.Version() - // Server configuration output - padding := 24 - sort.Strings(infoKeys) c.UI.Output("==> Vault server configuration:\n") for _, k := range infoKeys { c.UI.Output(fmt.Sprintf( - "%s%s: %s", - strings.Repeat(" ", padding-len(k)), + "%24s: %s", strings.Title(k), info[k])) }