mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
dns zone enhancement and return curated value (#50740)
This commit is contained in:
@@ -220,7 +220,7 @@ AZURE_PKG_VERSIONS = {
|
||||
},
|
||||
'DnsManagementClient': {
|
||||
'package_name': 'dns',
|
||||
'expected_version': '1.2.0'
|
||||
'expected_version': '2.1.0'
|
||||
},
|
||||
'WebSiteManagementClient': {
|
||||
'package_name': 'web',
|
||||
@@ -839,9 +839,15 @@ class AzureRMModuleBase(object):
|
||||
self.log('Getting dns client')
|
||||
if not self._dns_client:
|
||||
self._dns_client = self.get_mgmt_svc_client(DnsManagementClient,
|
||||
base_url=self._cloud_environment.endpoints.resource_manager)
|
||||
base_url=self._cloud_environment.endpoints.resource_manager,
|
||||
api_version='2018-05-01')
|
||||
return self._dns_client
|
||||
|
||||
@property
|
||||
def dns_models(self):
|
||||
self.log("Getting dns models...")
|
||||
return DnsManagementClient.models('2018-05-01')
|
||||
|
||||
@property
|
||||
def web_client(self):
|
||||
self.log('Getting web client')
|
||||
|
||||
Reference in New Issue
Block a user