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

Switch to an explicit SUPPORTS setup

This commit is contained in:
Ross McFarland
2017-06-21 17:08:16 -07:00
parent a316bf578c
commit 852c101388
11 changed files with 32 additions and 16 deletions

View File

@@ -220,6 +220,8 @@ class Route53Provider(BaseProvider):
In general the account used will need full permissions on Route53.
'''
SUPPORTS_GEO = True
SUPPORTS = set(('A', 'AAAA', 'CNAME', 'MX', 'NAPTR', 'NS', 'PTR', 'SPF',
'SRV', 'TXT'))
# This should be bumped when there are underlying changes made to the
# health check config.
@@ -239,9 +241,6 @@ class Route53Provider(BaseProvider):
self._r53_rrsets = {}
self._health_checks = None
def supports(self, record):
return record._type not in ('ALIAS', 'SSHFP')
@property
def r53_zones(self):
if self._r53_zones is None: