From 9eaac27ddf379164ad387a9bfc17aac965ae2480 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Mon, 10 Dec 2018 08:48:18 -0800 Subject: [PATCH] Avoid reusing seen, loop instead --- octodns/record.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/octodns/record.py b/octodns/record.py index 175878a..db368a7 100644 --- a/octodns/record.py +++ b/octodns/record.py @@ -515,9 +515,9 @@ class _DynamicMixin(object): # See if there's a next fallback fallback = pools.get(fallback, {}).get('fallback', None) if fallback in seen: - seen = ' -> '.join(seen) + loop = ' -> '.join(seen) reasons.append('loop in pool fallbacks: {}' - .format(seen)) + .format(loop)) # exit the loop break seen.append(fallback)