1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Merge branch 'master' into zones-aliases

This commit is contained in:
Jonathan Leroy
2020-10-20 19:51:56 +02:00
committed by GitHub
7 changed files with 43 additions and 15 deletions

View File

@@ -271,8 +271,8 @@ class Manager(object):
return plans
def sync(self, eligible_zones=[], eligible_targets=[], dry_run=True,
force=False):
def sync(self, eligible_zones=[], eligible_sources=[], eligible_targets=[],
dry_run=True, force=False):
self.log.info('sync: eligible_zones=%s, eligible_targets=%s, '
'dry_run=%s, force=%s', eligible_zones, eligible_targets,
dry_run, force)
@@ -297,6 +297,12 @@ class Manager(object):
except KeyError:
raise ManagerException('Zone {} is missing targets'
.format(zone_name))
if (eligible_sources and not
[s for s in sources if s in eligible_sources]):
self.log.info('sync: no eligible sources, skipping')
continue
if eligible_targets:
targets = [t for t in targets if t in eligible_targets]