mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 19:47:54 +00:00
Change next major release of Vault to 0.11 or later to make it less scary
This commit is contained in:
@@ -68,8 +68,8 @@ func (c *AuthCommand) Run(args []string) int {
|
||||
case strings.HasPrefix(arg, "-methods"):
|
||||
c.UI.Warn(wrapAtLength(
|
||||
"WARNING! The -methods flag is deprecated. Please use "+
|
||||
"\"vault auth list\" instead. This flag will be removed in the "+
|
||||
"next major release of Vault.") + "\n")
|
||||
"\"vault auth list\" instead. This flag will be removed in "+
|
||||
"Vault 0.11 (or later).") + "\n")
|
||||
return (&AuthListCommand{
|
||||
BaseCommand: &BaseCommand{
|
||||
UI: c.UI,
|
||||
@@ -79,8 +79,8 @@ func (c *AuthCommand) Run(args []string) int {
|
||||
case strings.HasPrefix(arg, "-method-help"):
|
||||
c.UI.Warn(wrapAtLength(
|
||||
"WARNING! The -method-help flag is deprecated. Please use "+
|
||||
"\"vault auth help\" instead. This flag will be removed in the "+
|
||||
"next major release of Vault.") + "\n")
|
||||
"\"vault auth help\" instead. This flag will be removed in "+
|
||||
"Vault 0.11 (or later).") + "\n")
|
||||
// Parse the args to pull out the method, surpressing any errors because
|
||||
// there could be other flags that we don't care about.
|
||||
f := flag.NewFlagSet("", flag.ContinueOnError)
|
||||
@@ -103,10 +103,9 @@ func (c *AuthCommand) Run(args []string) int {
|
||||
// passed directly to the new "vault login" command.
|
||||
c.UI.Warn(wrapAtLength(
|
||||
"WARNING! The \"vault auth ARG\" command is deprecated and is now a "+
|
||||
"subcommand for interacting with auth methods. To "+
|
||||
"authenticate locally to Vault, use \"vault login\" instead. This "+
|
||||
"backwards compatability will be removed in the next major release of "+
|
||||
"Vault.") + "\n")
|
||||
"subcommand for interacting with auth methods. To authenticate "+
|
||||
"locally to Vault, use \"vault login\" instead. This backwards "+
|
||||
"compatability will be removed in Vault 0.11 (or later).") + "\n")
|
||||
return (&LoginCommand{
|
||||
BaseCommand: &BaseCommand{
|
||||
UI: c.UI,
|
||||
|
||||
Reference in New Issue
Block a user