mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
modified storageaccount fact return curated result with connection string (#49702)
This commit is contained in:
parent
896e320142
commit
664e6fb9c8
8 changed files with 521 additions and 66 deletions
|
@ -205,7 +205,7 @@ def normalize_location_name(name):
|
|||
AZURE_PKG_VERSIONS = {
|
||||
'StorageManagementClient': {
|
||||
'package_name': 'storage',
|
||||
'expected_version': '1.5.0'
|
||||
'expected_version': '3.1.0'
|
||||
},
|
||||
'ComputeManagementClient': {
|
||||
'package_name': 'compute',
|
||||
|
@ -379,6 +379,7 @@ class AzureRMModuleBase(object):
|
|||
:param tags: metadata tags from the object
|
||||
:return: bool, dict
|
||||
'''
|
||||
tags = tags or dict()
|
||||
new_tags = copy.copy(tags) if isinstance(tags, dict) else dict()
|
||||
param_tags = self.module.params.get('tags') if isinstance(self.module.params.get('tags'), dict) else dict()
|
||||
append_tags = self.module.params.get('append_tags') if self.module.params.get('append_tags') is not None else True
|
||||
|
@ -790,12 +791,12 @@ class AzureRMModuleBase(object):
|
|||
if not self._storage_client:
|
||||
self._storage_client = self.get_mgmt_svc_client(StorageManagementClient,
|
||||
base_url=self._cloud_environment.endpoints.resource_manager,
|
||||
api_version='2017-10-01')
|
||||
api_version='2018-07-01')
|
||||
return self._storage_client
|
||||
|
||||
@property
|
||||
def storage_models(self):
|
||||
return StorageManagementClient.models("2017-10-01")
|
||||
return StorageManagementClient.models("2018-07-01")
|
||||
|
||||
@property
|
||||
def network_client(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue