Browse Source

log warning when unused subnet pools are dropped

pull/993/head
Viranch Mehta 3 years ago
parent
commit
a151ae31c9
No known key found for this signature in database GPG Key ID: D83D1392AE9F93B4
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      octodns/provider/base.py

+ 5
- 0
octodns/provider/base.py View File

@ -121,6 +121,11 @@ class BaseProvider(BaseSource):
pool = pools[pool].data.get('fallback')
pools_unseen = set(pools.keys()) - pools_seen
for pool in pools_unseen:
self.log.warning(
'%s: skipping pool %s which is rendered unused due to lack of support for subnet targeting',
record.fqdn,
pool,
)
del pools[pool]
desired.add_record(record, replace=True)


Loading…
Cancel
Save