Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR #9649/19d00496 backport][stable-10] cloudflare_dns: fix crash whe…
…n deleting a DNS record or when updating a record with solo=true (#9655) 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 19d0049) Co-authored-by: valievkarim <valievkarim@gmail.com>
- Loading branch information