-
Notifications
You must be signed in to change notification settings - Fork 71
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
Introduce ignore_errors
argument to data sources
#76
base: main
Are you sure you want to change the base?
Conversation
Personally, I'd rather see this option added to all of the datasources rather than only add it to some of them, otherwise they become inconsistent with each other. Also, (and I'm not sure if this is possible), you are potentially masking any type of DNS error behind this boolean rather than specifically just NXDOMAIN. |
I was about to do it for all data sources, but had to stop myself, because I wanted to hear some feedback on the proposed changes (much appreciated!). I'll be happy to introduce the same logic for all remaining record types. I have also spent some time looking at the underlying library implementation, but I could not figure out a clean and reliable way to distinguish "no such host" failures from other errors. I looked at it earlier, and I looked at it again just now. Still cannot figure it out. So may be in this context |
Signed-off-by: Sergei Ivanov <[email protected]>
311652f
to
b77c566
Compare
Sorry, it took a few months to get back to this. I have rebased on the latest master, renamed the argument to |
ignore_missing
argument to A, AAAA and CNAME dataignore_errors
argument to data sources
Signed-off-by: Sergei Ivanov <[email protected]>
I'll fix the failing test tonight. |
Looks like the DNS PTR record has been updated on Google side:
|
# Conflicts: # dns/data_dns_ptr_record_set_test.go
Signed-off-by: Sergei Ivanov <[email protected]>
# Conflicts: # CHANGELOG.md # dns/data_dns_cname_record_set_test.go # dns/data_dns_ptr_record_set_test.go
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement Learn more about why HashiCorp requires a CLA and what the CLA includes 1 out of 2 committers have signed the CLA.
Pam Selle seems not to be a GitHub user. Have you signed the CLA already but the status is still pending? Recheck it. |
This seems silly. The I any case, this feature would be very helpful for me. I'd be willing to put some effort into getting this up-to-date if that's acceptable. |
The provider has moved on a lot since the original PR and especially the tests were relocated and substantially refactored. I started rebasing, but it quickly became a major chore, and I had to put it on hold because of a lack of spare time on my part. I'll try to get back to it, but I need some encouragement from the provider team, because I don't want to waste my effort on something that might be ignored. |
I'd like this one too @sergei-ivanov #sergeistandard <B see my overbuilt myip module, where I want more survivability on silly things. |
Fixes #75