dns/ddclient hetzner existing record update patch#5188
dns/ddclient hetzner existing record update patch#5188jnikodemus wants to merge 5 commits intoopnsense:masterfrom
Conversation
Added workaround for API bug on update record. Thanks to @ArcanConsulting
Added LOG_NOTICE for deletion.
|
wouldn't it be better to open a ticket at their end, it feels rather weird to patch the caller in this case (assuming its a bug and not a documented change of behavior) |
|
You are right, I've contacted the hoster again. I'll write it correct. |
Updated _update method. No workaround needed.
fix: correct indentation of return statement in _update_record
|
I was just going to open a pull request for the same issue but then I found yours. Since you also removed some code duplication, your changes are ahead of mine (see 7bc1af4). One thing I have noticed is that you are including the TTL parameter in your request. This should be removed as it's not used in the update_records action (see https://docs.hetzner.cloud/reference/cloud#tag/zone-rrset-actions/update_zone_rrset_records). |
fix: removed ttl from _update_record as its not supported (thanks to Ollienator).
Thank you, appreciate the hint. I've removed the ttl from the _update_record and tested again -> success. |
Fix ddclient update Hetzner for new API
Reference
pull#5082
issue#5187
Problem
The actual update method returns code 200 for an update, because it doesnt use the right entrypoint.
Fix
Changed the API entrypoint "actions" and removed code duplication.
Testing
Tested on a local OPNsense instance with multiple records.