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

Check subnets for re-used pools

This commit is contained in:
Viranch Mehta
2023-04-09 09:59:17 -07:00
parent 96f09cb4e5
commit 75cca9d12f

View File

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