Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builder/amazon: set flag to delete temporary keypair #4850

Merged
merged 2 commits into from
May 1, 2017
Merged

Conversation

mwhooker
Copy link
Contributor

fixes #4807

The logic was getting far too complicated to decide if we need to clean up a temporary key pair, so let's just set a flag after we do create one.

Also noticed that openstack replicated the same complicated logic, so I added the flag there, too.

I feel like this is too simple a fix for what appears to be complex logic, so I'd like a second set of eyes on this if possible.

@rickard-von-essen
Copy link
Collaborator

👍
Maybe the Cleanupmethod should remove s.TemporaryKeyPairName, this will add safeguard without complicating anything.

@mwhooker mwhooker merged commit 98af553 into master May 1, 2017
@mwhooker mwhooker deleted the tmpkeyflag branch May 1, 2017 17:44
@ghost ghost locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

builder/amazon: key from agent tries to get cleaned up on failure
2 participants