Avoid duplicate Azure storage account types.

(cherry picked from commit ae4d5e3257)
pull/45510/merge
Matt Clay 6 years ago
parent 6c448e38e1
commit bce9d21945

@ -173,7 +173,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,

Loading…
Cancel
Save