From 111a945fb3aee407ed8dc28ccd0115a7f70eddf5 Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Thu, 1 Sep 2016 16:32:27 -0400 Subject: [PATCH] Avoid commas while printing policies --- command/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/auth.go b/command/auth.go index d4c40e222d..210ae5f8a7 100644 --- a/command/auth.go +++ b/command/auth.go @@ -242,7 +242,7 @@ func (c *AuthCommand) Run(args []string) int { output += fmt.Sprintf("\ntoken: %s", secret.Data["id"]) output += fmt.Sprintf("\ntoken_duration: %s", secret.Data["ttl"].(json.Number).String()) if len(policies) > 0 { - output += fmt.Sprintf("\ntoken_policies: [%s]", strings.Join(policies, ", ")) + output += fmt.Sprintf("\ntoken_policies: %v", policies) } c.Ui.Output(output)