Skip to content

Commit

Permalink
Avoid duplicate Azure storage account types.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay committed Sep 11, 2018
1 parent 8ae14be commit ae4d5e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ansible/modules/cloud/azure/azure_rm_storageaccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ def __init__(self):

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,
Expand Down

0 comments on commit ae4d5e3

Please sign in to comment.