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

Explicit list on filter when checking for non-existant targets

This commit is contained in:
Ross McFarland
2019-10-07 09:33:14 -07:00
parent be06a5da94
commit 25cc4f42db

View File

@@ -263,7 +263,8 @@ class Manager(object):
except KeyError:
raise Exception('Zone {} is missing targets'.format(zone_name))
if eligible_targets:
targets = filter(lambda d: d in eligible_targets, targets)
targets = list(filter(lambda d: d in eligible_targets,
targets))
if not targets:
# Don't bother planning (and more importantly populating) zones