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

provider/digitalocean: check if the droplet no longer exists. #2497

Merged
merged 1 commit into from
Jun 26, 2015

Conversation

rgl
Copy link
Contributor

@rgl rgl commented Jun 25, 2015

if you manually delete a droplet from the Digital Ocean control panel, you no longer can use terraform without fiddling with the tfstate file due to:

terraform plan -no-color
Refreshing Terraform state prior to plan...

digitalocean_droplet.web: Refreshing state... (ID: 5874338)
Error refreshing state: 1 error(s) occurred:

* 1 error(s) occurred:

* Error retrieving droplet: Error retrieving droplet: API Error: 404 Not Found

The resource reader was missing a check for the droplet existence. this PR fixes that.

@phinze
Copy link
Contributor

phinze commented Jun 26, 2015

Thanks for this!

Sad that we have to match on the exact error, but I took a look at upstream and it's the best we can do for now.

phinze added a commit that referenced this pull request Jun 26, 2015
provider/digitalocean: check if the droplet no longer exists.
@phinze phinze merged commit c928d28 into hashicorp:master Jun 26, 2015
@ghost
Copy link

ghost commented May 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants