From 03a4763624a532b788def0df8adbde645a3bc5d3 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Mon, 19 Jun 2017 21:49:16 -0700 Subject: [PATCH] Skip planning (and populating) zones without elible targets --- octodns/manager.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/octodns/manager.py b/octodns/manager.py index 11a675b..0366685 100644 --- a/octodns/manager.py +++ b/octodns/manager.py @@ -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: