mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
add supports check to DNSMadeEasy Provider
This commit is contained in:
@@ -265,6 +265,10 @@ class DnsMadeEasyProvider(BaseProvider):
|
||||
values = defaultdict(lambda: defaultdict(list))
|
||||
for record in self.zone_records(zone):
|
||||
_type = record['type']
|
||||
if _type not in self.SUPPORTS:
|
||||
self.log.warning('populate: skipping unsupported %s record',
|
||||
_type)
|
||||
continue
|
||||
values[record['name']][record['type']].append(record)
|
||||
|
||||
before = len(zone.records)
|
||||
|
20
tests/fixtures/dnsmadeeasy-records.json
vendored
20
tests/fixtures/dnsmadeeasy-records.json
vendored
@@ -335,6 +335,24 @@
|
||||
"value": "aname",
|
||||
"id": 11189896,
|
||||
"type": "ANAME"
|
||||
}],
|
||||
}, {
|
||||
"failover": false,
|
||||
"monitor": false,
|
||||
"sourceId": 123123,
|
||||
"dynamicDns": false,
|
||||
"failed": false,
|
||||
"gtdLocation": "DEFAULT",
|
||||
"hardLink": true,
|
||||
"ttl": 1800,
|
||||
"source": 1,
|
||||
"name": "unsupported",
|
||||
"value": "https://redirect.unit.tests",
|
||||
"id": 11189897,
|
||||
"title": "Unsupported Record",
|
||||
"keywords": "unsupported",
|
||||
"redirectType": "Standard - 302",
|
||||
"description": "unsupported record",
|
||||
"type": "HTTPRED"
|
||||
}],
|
||||
"page": 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user