mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-04 12:22:45 +00:00
Avoid duplicate Azure storage account types.
This commit is contained in:
@@ -174,7 +174,8 @@ class AzureRMStorageAccount(AzureRMModuleBase):
|
||||
|
||||
if HAS_AZURE:
|
||||
for key in self.storage_models.SkuName:
|
||||
self.module_arg_spec['account_type']['choices'].append(getattr(key, 'value'))
|
||||
if getattr(key, 'value') not in self.module_arg_spec['account_type']['choices']:
|
||||
self.module_arg_spec['account_type']['choices'].append(getattr(key, 'value'))
|
||||
|
||||
self.results = dict(
|
||||
changed=False,
|
||||
|
||||
Reference in New Issue
Block a user