mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Update to remove URL and STEALTH records
* Removed conversion of URL and STEALTH records to CNAME records * Updated test fixtures to remove URL conversion testing
This commit is contained in:
@@ -115,9 +115,6 @@ class EasyDNSClient(object):
|
||||
resp = self._request('GET', path).json()
|
||||
ret += resp['data']
|
||||
|
||||
# EasyDNS supports URL forwarding, stealth URL forwarding and DYNamic
|
||||
# A records so we'll convert them to their underlying DNS record
|
||||
# types before processing
|
||||
for record in ret:
|
||||
# change any apex record to empty string
|
||||
if record['host'] == '@':
|
||||
@@ -127,10 +124,8 @@ class EasyDNSClient(object):
|
||||
if record['rdata'] == '@':
|
||||
record['rdata'] = '{}.'.format(zone_name)
|
||||
|
||||
# change "URL" & "STEALTH" to a "CNAME"
|
||||
if record['type'] == "URL" or record['type'] == "STEALTH":
|
||||
record['type'] = 'CNAME'
|
||||
|
||||
# EasyDNS supports DYNamic A records so we'll convert these
|
||||
# to their underlying DNS record type before processing
|
||||
if record['type'] == "DYN":
|
||||
record['type'] = 'A'
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -106,7 +106,7 @@
|
||||
"host": "cname",
|
||||
"ttl": "300",
|
||||
"prio": null,
|
||||
"type": "URL",
|
||||
"type": "CNAME",
|
||||
"rdata": "@",
|
||||
"geozone_id": "0",
|
||||
"last_mod": "2020-01-01 01:01:01"
|
||||
@@ -271,4 +271,4 @@
|
||||
"start": 0,
|
||||
"max": 1000,
|
||||
"status": 200
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user