Browse Source

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

Skip planning (and populating) zones without elible targets
pull/71/head
Ross McFarland 9 years ago
committed by GitHub
parent
commit
cdba531175
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      octodns/manager.py

+ 7
- 0
octodns/manager.py 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:


Loading…
Cancel
Save