Skip to content

Commit

Permalink
Fixes for TXT ; handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapmex authored Sep 21, 2023
1 parent 58aaf89 commit cb3dd1b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion octodns_selectel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,18 @@ def _params_for_SSHFP(self, record):
'fingerprint': value.fingerprint,
}

def _params_for_TXT(self, record):
for value in record.values:
yield {
'content': value.replace('\\', ''),
'name': record.fqdn,
'ttl': max(self.MIN_TTL, record.ttl),
'type': record._type,
}

_params_for_A = _params_for_multiple
_params_for_AAAA = _params_for_multiple
_params_for_NS = _params_for_multiple
_params_for_TXT = _params_for_multiple

_params_for_CNAME = _params_for_single
_params_for_ALIAS = _params_for_single
Expand Down

0 comments on commit cb3dd1b

Please sign in to comment.