diff options
-rwxr-xr-x | octodns-custom-providers/provider/zonefile.py | 7 | ||||
-rwxr-xr-x | setup.py | 2 |
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 @@ -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", |