From ae4d5e3257b1b69770b45cda74008cbc8e2823b3 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 11 Sep 2018 10:23:54 -0700 Subject: [PATCH] Avoid duplicate Azure storage account types. --- lib/ansible/modules/cloud/azure/azure_rm_storageaccount.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_storageaccount.py b/lib/ansible/modules/cloud/azure/azure_rm_storageaccount.py index fb0314e1570..90423870a56 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_storageaccount.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_storageaccount.py @@ -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,