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

Handle and test for old-style NS1 catchall naming pattern

This commit is contained in:
Ross McFarland
2020-06-23 14:54:40 -07:00
parent 2938c7bf6a
commit 0830b9c114
2 changed files with 14 additions and 1 deletions

View File

@@ -455,6 +455,9 @@ class Ns1Provider(BaseProvider):
return data
def _parse_dynamic_pool_name(self, pool_name):
if pool_name.startswith('catchall__'):
# Special case for the old-style catchall prefix
return pool_name[10:]
try:
pool_name, _ = pool_name.rsplit('__', 1)
except ValueError: