From 4b6fd8b4a1e19fe889943aab705ecf23b6c19495 Mon Sep 17 00:00:00 2001 From: sbrinkerhoff Date: Thu, 27 May 2021 17:59:10 -0400 Subject: [PATCH] Remove type mutation Co-authored-by: Ross McFarland --- octodns/provider/ultra.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/octodns/provider/ultra.py b/octodns/provider/ultra.py index f65c519..a2eae3c 100644 --- a/octodns/provider/ultra.py +++ b/octodns/provider/ultra.py @@ -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)