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

Unit tests for ns1 escape handling and fix

This commit is contained in:
Ross McFarland
2017-07-05 14:28:01 -07:00
parent 8d7b3fb101
commit 818c1e9cc6
2 changed files with 35 additions and 1 deletions

View File

@@ -154,7 +154,7 @@ class Ns1Provider(BaseProvider):
# NS1 seems to be the only provider that doesn't want things escaped in
# values so we have to strip them here and add them when going the
# other way
values = [v.replace('\\', '') for v in record.values]
values = [v.replace('\;', ';') for v in record.values]
return {'answers': values, 'ttl': record.ttl}
_params_for_TXT = _params_for_SPF