mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
azure_rm_storageaccount: fix broken import
This commit is contained in:
committed by
Matt Clay
parent
b740d68eaa
commit
2f535a339c
@@ -147,7 +147,7 @@ except ImportError:
|
||||
# This is handled in azure_rm_common
|
||||
pass
|
||||
|
||||
from ansible.module_utils.azure_rm_common import AZURE_SUCCESS_STATE, AzureRMModuleBase
|
||||
from ansible.module_utils.azure_rm_common import AZURE_SUCCESS_STATE, AzureRMModuleBase, HAS_AZURE
|
||||
|
||||
|
||||
class AzureRMStorageAccount(AzureRMModuleBase):
|
||||
@@ -167,8 +167,9 @@ class AzureRMStorageAccount(AzureRMModuleBase):
|
||||
access_tier=dict(type='str', choices=['Hot', 'Cool'])
|
||||
)
|
||||
|
||||
for key in self.storage_models.SkuName:
|
||||
self.module_arg_spec['account_type']['choices'].append(getattr(key, 'value'))
|
||||
if HAS_AZURE:
|
||||
for key in self.storage_models.SkuName:
|
||||
self.module_arg_spec['account_type']['choices'].append(getattr(key, 'value'))
|
||||
|
||||
self.results = dict(
|
||||
changed=False,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
lib/ansible/modules/cloud/azure/azure_rm_storageaccount.py
|
||||
lib/ansible/modules/cloud/webfaction/webfaction_site.py
|
||||
lib/ansible/modules/clustering/k8s/k8s_raw.py
|
||||
lib/ansible/modules/clustering/k8s/k8s_scale.py
|
||||
|
||||
Reference in New Issue
Block a user