mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
dns zone enhancement and return curated value (#50740)
This commit is contained in:
parent
9487815a26
commit
0f6252baf3
8 changed files with 445 additions and 118 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue