From dcd2de395d182a4660f09c5dde0060fb2dce0139 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Fri, 18 Aug 2017 15:44:20 -0400 Subject: [PATCH] Do not revoke SSH key (#3208) There is no secret to revoke - this produces an error on the CLI --- command/ssh.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/command/ssh.go b/command/ssh.go index 16823c10a7..5b745ac080 100644 --- a/command/ssh.go +++ b/command/ssh.go @@ -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 }