Merge pull request #1326 from hashicorp/sethvargo/hint_noreauth

Hint that you don't need to run auth twice
This commit is contained in:
Jeff Mitchell
2016-04-25 15:43:55 -04:00

View File

@@ -228,7 +228,11 @@ func (c *AuthCommand) Run(args []string) int {
policies = append(policies, v.(string))
}
output := "Successfully authenticated!"
output := "Successfully authenticated! You are now logged in."
if method != "" {
output += "\nThe token below is already saved in the session. You do not"
output += "\nneed to \"vault auth\" again with the token."
}
output += fmt.Sprintf("\ntoken: %s", secret.Data["id"])
output += fmt.Sprintf("\ntoken_duration: %s", secret.Data["ttl"].(json.Number).String())
if len(policies) > 0 {