Fix token storage

This commit is contained in:
Jeff Mitchell committed 2020-09-15 02:07:10 -04:00
1 parent a00ee7a948
commit 97985883df
1 file changed
+1 -1
@@ -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