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

Avoid reusing seen, loop instead

This commit is contained in:
Ross McFarland
2018-12-10 08:48:18 -08:00
parent bc6e492f35
commit 9eaac27ddf

View File

@@ -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)