Browse Source

error when list_zones is missing on a dynamic source

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

+ 5
- 0
octodns/manager.py View File

@ -526,6 +526,11 @@ class Manager(object):
sources = self._get_sources(name, config, eligible_sources)
self.log.info('sync: dynamic zone=%s, sources=%s', name, sources)
for source in sources:
if not hasattr(source, 'list_zones'):
raise ManagerException(
f'dynamic zone=%s includes a source that does not support `list_zones`',
name,
)
for zone_name in source.list_zones():
if zone_name in zones:
self.log.info(


Loading…
Cancel
Save