From 75cca9d12fc6248a34e0cde944f4a43fd6e0975d Mon Sep 17 00:00:00 2001 From: Viranch Mehta Date: Sun, 9 Apr 2023 09:59:17 -0700 Subject: [PATCH] Check subnets for re-used pools --- octodns/record/dynamic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octodns/record/dynamic.py b/octodns/record/dynamic.py index 1423b09..86205ae 100644 --- a/octodns/record/dynamic.py +++ b/octodns/record/dynamic.py @@ -248,7 +248,7 @@ class _DynamicMixin(object): reasons.append( f'rule {rule_num} undefined pool ' f'"{pool}"' ) - elif pool in pools_seen and geos: + elif pool in pools_seen and (subnets or geos): reasons.append( f'rule {rule_num} invalid, target ' f'pool "{pool}" reused'