diff options
Diffstat (limited to 'octodns-custom-providers/provider')
-rwxr-xr-x | octodns-custom-providers/provider/zonefile.py | 7 |
1 files changed, 6 insertions, 1 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 |