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

small cleanup

This commit is contained in:
Viranch Mehta
2021-07-05 10:20:39 -07:00
parent b684b54b3e
commit 3cde73ce1c

View File

@@ -1246,7 +1246,6 @@ class AzureProvider(BaseProvider):
'''
existing = change.existing
new = change.new
typ = new._type
existing_is_dynamic = getattr(existing, 'dynamic', False)
new_is_dynamic = getattr(new, 'dynamic', False)
@@ -1257,7 +1256,7 @@ class AzureProvider(BaseProvider):
profiles = self._generate_traffic_managers(new)
root_profile = profiles[-1]
if typ in ['A', 'AAAA']:
if new._type in ['A', 'AAAA']:
if existing_is_dynamic:
# update to the record is not needed
update_record = False