mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Remove the rest of the . ending files, clean up code and tests for better coverage
This commit is contained in:
@@ -239,11 +239,13 @@ class SplitYamlProvider(YamlProvider):
|
||||
# instead of a file matching the record name.
|
||||
CATCHALL_RECORD_NAMES = ('*', '')
|
||||
|
||||
def __init__(self, id, directory, *args, **kwargs):
|
||||
def __init__(self, id, directory, extension='.', *args, **kwargs):
|
||||
super(SplitYamlProvider, self).__init__(id, directory, *args, **kwargs)
|
||||
self.extension = extension
|
||||
|
||||
def _zone_directory(self, zone):
|
||||
return join(self.directory, zone.name)
|
||||
filename = '{}{}'.format(zone.name[:-1], self.extension)
|
||||
return join(self.directory, filename)
|
||||
|
||||
def populate(self, zone, target=False, lenient=False):
|
||||
self.log.debug('populate: name=%s, target=%s, lenient=%s', zone.name,
|
||||
|
Reference in New Issue
Block a user