From 3cde73ce1c2dd9ca47616ba535f857277e2dcec8 Mon Sep 17 00:00:00 2001 From: Viranch Mehta Date: Mon, 5 Jul 2021 10:20:39 -0700 Subject: [PATCH] small cleanup --- octodns/provider/azuredns.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/octodns/provider/azuredns.py b/octodns/provider/azuredns.py index 59bd8c3..6edc1ba 100644 --- a/octodns/provider/azuredns.py +++ b/octodns/provider/azuredns.py @@ -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