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

Skip planning (and populating) zones without elible targets

This commit is contained in:
Ross McFarland
2017-06-19 21:49:16 -07:00
parent 5c6981fd3f
commit 03a4763624

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: