1
0
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:
Ross McFarland
2023-07-26 09:26:09 -07:00
parent da5b7d0d1e
commit 5dd5fae210

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(