Skip to content

Fix errors in Route53 provider#8

Open
amiryal wants to merge 3 commits intoploperations:revert-10-remove_r53from
seekingalpha:route53_fix
Open

Fix errors in Route53 provider#8
amiryal wants to merge 3 commits intoploperations:revert-10-remove_r53from
seekingalpha:route53_fix

Conversation

@amiryal
Copy link
Copy Markdown

@amiryal amiryal commented Jun 13, 2017

Hi,

I stumbled upon a bug in the route53 provider, where managed records kept being destroyed and re-created on every Puppet run, even though they were correct in the actual DNS zone. This PR contains the fix that works for me.

I split the patch into several commits: one cosmetic, one for the actual fix, and one with the changes in debug/info messages that helped me identify the problem.

amiryal added 3 commits June 13, 2017 15:23
* Use .all! instead of .all, to really get beyond the first batch.
* Use .chomp('.') and .to_s where necessary to compare values correctly.
* Add a check for r.type == resource[:type], to avoid destroying innocent records.
* Add mk_resource_methods, because Puppet was throwing exceptions otherwise.
* Use info level message when performing a destructive action.
* Emit messages before attempting the action, so that exceptions appear
  in context in the logs.
* Remove references to unused resource property `domain`.
* Add a few more debug messages.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Feb 24, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@genebean genebean changed the base branch from main to revert-10-remove_r53 April 4, 2023 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants