From 97985883dfa562aa7103f1c9cc726b2edda7bb66 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 15 Sep 2020 02:07:10 -0400 Subject: [PATCH] Fix token storage --- internal/cmd/commands/authenticate/password.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/commands/authenticate/password.go b/internal/cmd/commands/authenticate/password.go index 4597819071..33cb032348 100644 --- a/internal/cmd/commands/authenticate/password.go +++ b/internal/cmd/commands/authenticate/password.go @@ -152,7 +152,7 @@ func (c *PasswordCommand) Run(args []string) int { tokenName = c.Command.FlagTokenName } if tokenName != "none" { - marshaled, err := json.Marshal(result) + marshaled, err := json.Marshal(token) if err != nil { c.UI.Error(fmt.Sprintf("Error marshaling auth token to save to system credential store: %s", err)) return 1