Merge pull request #4080 from rickard-von-essen/issue-4057

Properly cleanup AWS temporary key pairs
pull/4085/head
Chris Bednarski 10 years ago committed by GitHub
commit 999a0968f5

@ -95,7 +95,7 @@ func (s *StepKeyPair) Cleanup(state multistep.StateBag) {
// If no key name is set, then we never created it, so just return
// If we used an SSH private key file, do not go about deleting
// keypairs
if s.PrivateKeyFile != "" || s.KeyPairName == "" {
if s.PrivateKeyFile != "" || s.KeyPairName != "" {
return
}

Loading…
Cancel
Save