Do not revoke SSH key (#3208)

There is no secret to revoke - this produces an error on the CLI
This commit is contained in:
Seth Vargo 2017-08-18 15:44:20 -04:00 committed by Vishal Nayak
parent 9a50117991
commit dcd2de395d

View File

@ -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
}