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

Force enable/disable pool values

This commit is contained in:
Viranch Mehta
2021-09-17 11:20:42 -07:00
parent 00d283b217
commit 1c531a9281
4 changed files with 60 additions and 11 deletions

View File

@@ -941,6 +941,16 @@ class Route53Provider(BaseProvider):
rule.data['geos'] = filtered_geos
rules.append(rule)
# check for use of 'up' flag and warn/except if used
for name, pool in dynamic.pools.items():
for value in pool.data['values']:
if value['up'] is not None:
msg = '"up" flag is not supported for "{}" pool' \
' in {}'.format(name, record.fqdn)
fallback = 'ignoring it, octodns-sync command ' \
'will keep showing changes'
self.supports_warn_or_except(msg, fallback)
if rules != dynamic.rules:
record = record.copy()
record.dynamic.rules = rules