mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
error when list_zones is missing on a dynamic source
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user