mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-04 12:01:23 +02:00
Do not revoke SSH key (#3208)
There is no secret to revoke - this produces an error on the CLI
This commit is contained in:
parent
9a50117991
commit
dcd2de395d
@ -321,10 +321,7 @@ func (c *SSHCommand) handleTypeCA() error {
|
||||
return errors.Wrap(err, "failed to run ssh command")
|
||||
}
|
||||
|
||||
// Revoke the key if it's longer than expected
|
||||
if err := c.client.Sys().Revoke(secret.LeaseID); err != nil {
|
||||
return errors.Wrap(err, "failed to revoke key")
|
||||
}
|
||||
// There is no secret to revoke, since it's a certificate signing
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user