Standardize how we format deprecated values in traditional path-help (#7007)

This commit is contained in:
Jeff Mitchell
2019-06-27 14:52:52 -04:00
committed by GitHub
parent 9681121b34
commit 7e230684aa
7 changed files with 25 additions and 16 deletions

View File

@@ -218,6 +218,10 @@ func (t *TokenParams) PopulateTokenAuth(auth *logical.Auth) {
auth.NumUses = t.TokenNumUses
}
func DeprecationText(param string) string {
return fmt.Sprintf("Use %q instead. If this and %q are both specified, only %q will be used.", param, param, param)
}
const (
tokenPeriodHelp = `If set, tokens created via this role
will have no max lifetime; instead, their