Skip to content

Commit

Permalink
Merge pull request #38 from Archirk/main
Browse files Browse the repository at this point in the history
Remove escaping func for TXT content to fix constant update of TXT records
  • Loading branch information
ross authored Dec 5, 2023
2 parents 68161a7 + 4ce7ac6 commit 30bb472
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions octodns_selectel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
__version__ = __VERSION__ = '0.0.3'


def escape_semicolon(s):
assert s
return s.replace(';', '\\;')


def require_root_domain(fqdn):
if fqdn.endswith('.'):
return fqdn
Expand Down Expand Up @@ -233,7 +228,7 @@ def _data_for_TXT(self, _type, records):
return {
'ttl': records[0]['ttl'],
'type': _type,
'values': [escape_semicolon(r['content']) for r in records],
'values': [r['content'] for r in records],
}

def _data_for_SRV(self, _type, records):
Expand Down

0 comments on commit 30bb472

Please sign in to comment.