Provider._process_desired_zone should call .supports, rather than do in SUPPORTS

This commit is contained in:
Ross McFarland
2022-08-27 15:23:52 -07:00
parent c92734f7a6
commit 72244ba161
+1 -1
View File
@@ -59,7 +59,7 @@ class BaseProvider(BaseSource):
'''
for record in desired.records:
if record._type not in self.SUPPORTS:
if not self.supports(record):
msg = f'{record._type} records not supported for {record.fqdn}'
fallback = 'omitting record'
self.supports_warn_or_except(msg, fallback)