1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Remove type mutation

Co-authored-by: Ross McFarland <ross@github.com>
This commit is contained in:
sbrinkerhoff
2021-05-27 17:59:10 -04:00
committed by GitHub
parent f00766a779
commit 4b6fd8b4a1

View File

@@ -455,10 +455,11 @@ class UltraProvider(BaseProvider):
existing.name + '.')
# UltraDNS treats the `APEXALIAS` type as the octodns `ALIAS`.
if existing._type == "ALIAS":
existing._type = "APEXALIAS"
existing_type = existing._type
if existing_type == "ALIAS":
existing_type = "APEXALIAS"
path = '/v2/zones/{}/rrsets/{}/{ }'.format(zone_name,
existing._type,
existing_type,
existing.fqdn)
self._delete(path, json_response=False)