Closed ThisIsntTheWay closed 10 months ago
Interesting edge case. I think there's a couple potential improvememts/fixes here.
CF needs to deal with the empty value as that's apparently legal.
It might also be possible to cleanly detect when values
is a str and it shouldn't be and throw an error.
Will throw these on the TODO list. In the interim I'm guessing manually cleaning out the value is the best work around.
https://github.com/octodns/octodns-cloudflare/pull/75 fixes the CloudflareProvider
bug
and https://github.com/octodns/octodns/pull/1131 adds a validation for what lead to hitting the bug
I, perhaps erroneously, declared a TXT record as such:
Which resulted in the following records being created:
The consequence, quite the clutter in the zone:
After correcting my mistake in the YAML (
values
->value
), consecutive runs failed due to:I managed to fix this by removing the empty record in the dashboard:
This is admittedly an edge case coupled with user error, but perhaps still worth to look at.