mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Standardize how we format deprecated values in traditional path-help (#7007)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user