From a58371e3bbf896f8c5bd1edb91f0cfaccd7ae921 Mon Sep 17 00:00:00 2001 From: Robert Reichel Date: Tue, 2 Feb 2021 12:40:57 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Ross McFarland --- octodns/provider/azuredns.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/octodns/provider/azuredns.py b/octodns/provider/azuredns.py index f41f892..046ddfe 100644 --- a/octodns/provider/azuredns.py +++ b/octodns/provider/azuredns.py @@ -336,24 +336,24 @@ class AzureProvider(BaseProvider): self._dns_client_key = key self._dns_client_directory_id = directory_id self._dns_client_subscription_id = sub_id - self._dns_client = None + self.__dns_client = None self._resource_group = resource_group self._azure_zones = set() @property def _dns_client(self): - if self._dns_client is None: + if self.__dns_client is None: credentials = ServicePrincipalCredentials( self._dns_client_client_id, secret=self._dns_client_key, tenant=self._dns_client_directory_id ) - self._dns_client = DnsManagementClient( + self.__dns_client = DnsManagementClient( credentials, self._dns_client_subscription_id ) - return self._dns_client + return self.__dns_client def _populate_zones(self): self.log.debug('azure_zones: loading')