aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-03-12 01:55:45 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-03-12 01:55:45 +0100
commit36293a920cbfcf898256393f9f45aa2223734bdf (patch)
tree895b7ca2abd0bb1303bce1f37728f970f353881a
parente1a16aa03b3ff33999d9889d02e913c3649d3e5b (diff)
downloadoctodns-custom-provider-36293a920cbfcf898256393f9f45aa2223734bdf.tar.gz
support custom providers
-rwxr-xr-xoctodns-custom-providers/provider/zonefile.py7
-rwxr-xr-xsetup.py2
2 files changed, 7 insertions, 2 deletions
diff --git a/octodns-custom-providers/provider/zonefile.py b/octodns-custom-providers/provider/zonefile.py
index 6df04e1..f112cf2 100755
--- a/octodns-custom-providers/provider/zonefile.py
+++ b/octodns-custom-providers/provider/zonefile.py
@@ -43,7 +43,7 @@ class ZoneFileProvider(BaseProvider):
}
'''
- def __init__(self, id, directory, soa, soa_ttl=3600, file_extension = ''):
+ def __init__(self, id, directory, soa, soa_ttl=3600, file_extension = '', support_root_ns = True):
'''
Arguments
=========
@@ -59,6 +59,7 @@ class ZoneFileProvider(BaseProvider):
self.file_extension = file_extension
self.soa = soa
self.soa_ttl = soa_ttl
+ self.support_root_ns = support_root_ns
# OctoDNS does not recursively check dicts for 'env/' keyword
# TODO Error handling
@@ -68,6 +69,10 @@ class ZoneFileProvider(BaseProvider):
super(ZoneFileProvider, self).__init__(id)
+ @property
+ def SUPPORTS_ROOT_NS(self):
+ return self.support_root_ns
+
def populate(self, zone, target=False, lenient=False):
if target:
return False
diff --git a/setup.py b/setup.py
index 47cddd6..315a64f 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ import setuptools
setup(
name='octodns-custom-providers',
- version='0.4.1',
+ version='0.5.0',
author="Jonas Gunz",
author_mail="himself@jonasgunz.de",
description="Custom sources for OctoDNS",