1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Merge pull request #692 from ricardbejarano/fix-caa-records

DigitalOcean CAA records have a dot (.) appended arbitrarily
This commit is contained in:
Ross McFarland
2021-09-15 18:34:04 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -263,7 +263,7 @@ class DigitalOceanProvider(BaseProvider):
def _params_for_CAA(self, record):
for value in record.values:
yield {
'data': '{}.'.format(value.value),
'data': value.value,
'flags': value.flags,
'name': record.name,
'tag': value.tag,

View File

@@ -186,7 +186,7 @@ class TestDigitalOceanProvider(TestCase):
'name': '@',
'ttl': 300, 'type': 'A'}),
call('POST', '/domains/unit.tests/records', data={
'data': 'ca.unit.tests.',
'data': 'ca.unit.tests',
'flags': 0, 'name': '@',
'tag': 'issue',
'ttl': 3600, 'type': 'CAA'}),