1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00
community.general/plugins
patchback[bot] 5d86045048
[PR #9649/19d00496 backport][stable-9] cloudflare_dns: fix crash when deleting a DNS record or when updating a record with solo=true (#9654)
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>
(cherry picked from commit 19d0049698)

Co-authored-by: valievkarim <valievkarim@gmail.com>
2025-01-31 10:57:21 +01:00
..
action [PR #8720/9a16eaf9 backport][stable-9] Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8722) 2024-08-07 15:49:06 +02:00
become [PR #8623/a24ee93f backport][stable-9] Type options of become plugins (#8659) 2024-07-21 22:15:40 +02:00
cache [PR #9453/040cd0ca backport][stable-9] normalize docs in cache/connection plugins (#9461) 2024-12-29 14:12:48 +01:00
callback [PR #9455/d887930e backport][stable-9] normalize docs in callback plugins (#9466) 2024-12-29 21:24:13 +01:00
connection [PR #9453/040cd0ca backport][stable-9] normalize docs in cache/connection plugins (#9461) 2024-12-29 14:12:48 +01:00
doc_fragments [PR #9423/0afd3386 backport][stable-9] [m-z]*.py: normalize doc_fragments (#9429) 2024-12-27 14:52:32 +01:00
filter [PR #9145/dc856ab6 backport][stable-9] filters/dict: document the correct return value (#9150) 2024-11-18 20:58:51 +01:00
inventory [PR #9099/886d4a65 backport][stable-9] proxmox inventory: fix urllib3 InsecureRequestWarnings not suppressing when a token is used (#9100) 2024-11-04 19:35:14 +01:00
lookup [stable-9] dig: handle NoNameservers exception (#9363) (#9410) 2024-12-26 17:13:08 +01:00
module_utils [PR #9256/d8b38073 backport][stable-9] proxmox_disk: fix async method of resize_disk (#9438) 2024-12-28 14:43:25 +01:00
modules [PR #9649/19d00496 backport][stable-9] cloudflare_dns: fix crash when deleting a DNS record or when updating a record with solo=true (#9654) 2025-01-31 10:57:21 +01:00
plugin_utils [PR #8814/ecc048bc backport][stable-9] Use dict comprehension in plugins (#8819) 2024-09-01 20:55:02 +02:00
test [PR #8595/8990f97b backport][stable-9] New Plugins #8594 (#8618) 2024-07-13 14:19:14 +02:00