community.general/plugins
valievkarim 19d0049698
cloudflare_dns: fix crash when deleting a DNS record or when updating a record with solo=true (#9649)
* cloudflare_dns: fix crash when deleting a DNS record or when updating a record with solo=true

On 2025-01-27, Cloudflare removed the 'zone_id' field from the DNS record API responses. This caused a KeyError in the delete_dns_records method, which previously relied on rr['zone_id'].

This commit ensures the zone ID is retrieved via _get_zone_id() rather than using the no-longer-provided 'zone_id' field in the record response.

Reference: https://developers.cloudflare.com/dns/changelog/#2025-01-27

* Add changelog fragment

* Update changelogs/fragments/9649-cloudflare_dns-fix-crash-when-deleting-record.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update changelogs/fragments/9649-cloudflare_dns-fix-crash-when-deleting-record.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2025-01-31 10:48:37 +01:00
..
action action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
become action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
cache action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
callback action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
connection connection/inventory: adjust import __future__ for Python3 (#9584) 2025-01-20 19:36:29 +01:00
doc_fragments Keycloak modules retry request on authentication error, support refresh token parameter (#9494) 2025-01-26 15:23:39 +01:00
filter add json_patch, json_patch_recipe and json_diff filters (#9565) 2025-01-21 20:51:21 +01:00
inventory Implement #9572 Add parameter sudo to inventory plugin iocage (#9573) 2025-01-22 20:03:59 +01:00
lookup onepassword_ssh_key: avoid inheriting from OnePassCLIv2 (#9633) 2025-01-27 07:24:14 +01:00
module_utils Proxmox module refactoring (#9225) 2025-01-26 16:06:14 +01:00
modules cloudflare_dns: fix crash when deleting a DNS record or when updating a record with solo=true (#9649) 2025-01-31 10:48:37 +01:00
plugin_utils plugins: replace to_native(), to_text(), str() with str() where possible or leave it away in f-string formatting (#9379) 2024-12-28 22:47:18 +01:00
test New Plugins #8594 (#8595) 2024-07-13 13:32:36 +02:00