mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Ignore records with unsupported rrtypes and log warning.
This commit is contained in:
@@ -287,7 +287,12 @@ class UltraProvider(BaseProvider):
|
||||
name = zone.hostname_from_fqdn(record['ownerName'])
|
||||
if record['rrtype'] == 'SOA (6)':
|
||||
continue
|
||||
_type = self.RECORDS_TO_TYPE[record['rrtype']]
|
||||
try:
|
||||
_type = self.RECORDS_TO_TYPE[record['rrtype']]
|
||||
except KeyError:
|
||||
self.log.warning('populate: ignoring record with '
|
||||
'unsupported rrtype=%s', record)
|
||||
continue
|
||||
values[name][_type] = record
|
||||
|
||||
for name, types in values.items():
|
||||
|
||||
Reference in New Issue
Block a user