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

Merge pull request #69 from github/skip-no-targets

Skip planning (and populating) zones without elible targets
This commit is contained in:
Ross McFarland
2017-06-19 21:52:04 -07:00
committed by GitHub

View File

@@ -206,6 +206,13 @@ class Manager(object):
if eligible_targets:
targets = filter(lambda d: d in eligible_targets, targets)
if not targets:
# Don't bother planning (and more importantly populating) zones
# when we don't have any eligible targets, waste of
# time/resources
self.log.info('sync: no eligible targets, skipping')
continue
self.log.info('sync: sources=%s -> targets=%s', sources, targets)
try: