From 25cc4f42db439327747bb8101a6d4d7381f0ebb8 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Mon, 7 Oct 2019 09:33:14 -0700 Subject: [PATCH] Explicit list on filter when checking for non-existant targets --- octodns/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/octodns/manager.py b/octodns/manager.py index 3984a5a..1c6a401 100644 --- a/octodns/manager.py +++ b/octodns/manager.py @@ -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