Change deprecation warnings from 0.11 or later to 0.12. (#5176)

Also remove a deprecated parameter that we warned would be removed since
0.8.
This commit is contained in:
Jeff Mitchell
2018-08-24 12:16:37 -04:00
committed by GitHub
parent 935815d3da
commit 9e3670a614
6 changed files with 11 additions and 29 deletions

View File

@@ -294,8 +294,7 @@ func (c *SSHCommand) Run(args []string) int {
"WARNING: No -role specified. Use -role to tell Vault which ssh role " +
"to use for authentication. In the future, you will need to tell " +
"Vault which role to use. For now, Vault will attempt to guess based " +
"on the API response. This will be removed in the Vault 0.11 (or " +
"later."))
"on the API response. This will be removed in the Vault 0.12."))
role, err := c.defaultRole(c.flagMountPoint, ip)
if err != nil {
@@ -322,7 +321,7 @@ func (c *SSHCommand) Run(args []string) int {
"on the API response. This guess involves creating a temporary " +
"credential, reading its type, and then revoking it. To reduce the " +
"number of API calls and surface area, specify -mode directly. This " +
"will be removed in Vault 0.11 (or later)."))
"will be removed in Vault 0.12."))
secret, cred, err := c.generateCredential(username, ip)
if err != nil {
// This is _very_ hacky, but is the only sane backwards-compatible way