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

Check HTTP status codes on responses from the DigitalOcean API instead of doing string compares #4179

Merged
merged 1 commit into from
Dec 7, 2015
Merged

Check HTTP status codes on responses from the DigitalOcean API instead of doing string compares #4179

merged 1 commit into from
Dec 7, 2015

Conversation

bearcage
Copy link
Contributor

@bearcage bearcage commented Dec 6, 2015

Analogous to #3768 -- just for DNS and keys.

The error string for 404s on DNS domains has (apparently)
changed, causing things to be a little sad when you modify
DNS domains from the DO console instead of terraform. This
is just the same fix as was applied to droplets around this
time last month.

While I was at it I just fixed this everywhere I saw it in the
DO provider source tree.

NB. I didn't run the acceptance tests on this (it's late where
I am, and I wanted to open this while it was still on my mind).
I did however confirm that for my project I was able to
reprovision DNS entries where I'd previously crashed out.

The error string for 404s on DNS domains has (apparently)
changed, causing things to be a little sad when you modify
DNS domains from the DO console instead of terraform. This
is just the same fix as was applied to droplets around this
time last month.

While I was at it I just fixed this everywhere I saw it in the
DO provider source tree.
@bearcage bearcage changed the title Analogous to #3768 -- just for DNS and keys. Check HTTP status codes on responses from the DigitalOcean API instead of doing string compares Dec 6, 2015
@stack72
Copy link
Contributor

stack72 commented Dec 7, 2015

@aberghage this is great - nice addition :) I've run all of the DO tests today and they seem ok

catsby added a commit that referenced this pull request Dec 7, 2015
…s_404

Check HTTP status codes on responses from the DigitalOcean API instead of doing string compares
@catsby catsby merged commit c95667c into hashicorp:master Dec 7, 2015
@ghost
Copy link

ghost commented Apr 29, 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 Apr 29, 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.

4 participants