mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Fix CosmosDB parameter translation bug (#54212)
This commit is contained in:
parent
4056427411
commit
18d9715fb1
2 changed files with 11 additions and 1 deletions
|
@ -324,7 +324,14 @@ class AzureRMCosmosDBAccount(AzureRMModuleBase):
|
|||
elif kwargs[key] is not None:
|
||||
self.parameters[key] = kwargs[key]
|
||||
|
||||
dict_camelize(self.parameters, ['kind'], True)
|
||||
kind = self.parameters.get('kind')
|
||||
if kind == 'global_document_db':
|
||||
self.parameters['kind'] = 'GlobalDocumentDB'
|
||||
elif kind == 'mongo_db':
|
||||
self.parameters['kind'] = 'MongoDB'
|
||||
elif kind == 'parse':
|
||||
self.parameters['kind'] = 'Parse'
|
||||
|
||||
dict_camelize(self.parameters, ['consistency_policy', 'default_consistency_level'], True)
|
||||
dict_rename(self.parameters, ['geo_rep_locations', 'name'], 'location_name')
|
||||
dict_rename(self.parameters, ['geo_rep_locations'], 'locations')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue