Browse Source

octodns-validate dynamic-config support

pull/1026/head
Ross McFarland 2 years ago
parent
commit
361de870e0
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      octodns/manager.py

+ 6
- 2
octodns/manager.py View File

@ -496,7 +496,7 @@ class Manager(object):
return sources
def _preprocess_zones(self, zones, eligible_sources):
def _preprocess_zones(self, zones, eligible_sources=None):
'''
This may modify the passed in zone object, it should be ignored after
the call and the zones returned from this function should be used
@ -873,7 +873,11 @@ class Manager(object):
def validate_configs(self):
# TODO: this code can probably be shared with stuff in sync
for zone_name, config in self.config['zones'].items():
zones = self.config['zones']
zones = self._preprocess_zones(zones)
for zone_name, config in zones.items():
decoded_zone_name = idna_decode(zone_name)
zone = self.get_zone(zone_name)


Loading…
Cancel
Save