1
0
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:
Adam Smith
2019-03-21 21:44:10 -07:00
parent bbe57f8ccc
commit ca80200653
2 changed files with 23 additions and 1 deletions

View File

@@ -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)

View File

@@ -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
}