Skip to content

Commit

Permalink
Addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GomathiselviS committed Oct 17, 2022
1 parent 7e595ce commit 5a96dd3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/modules/cloudwatch_metric_alarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,7 @@ def main():
params['OKActions'] = module.params.get('ok_actions', [])
params['TreatMissingData'] = module.params.get('treat_missing_data')
if module.params.get('metrics'):
params['Metrics'] = []
for element in module.params.get('metrics'):
params['Metrics'].append(snake_dict_to_camel_dict(element, capitalize_first=True))
params['Metrics'] = snake_dict_to_camel_dict(module.params['metrics'], capitalize_first=True)
if module.params.get('extended_statistic'):
params['ExtendedStatistic'] = module.params.get('extended_statistic')

Expand Down

0 comments on commit 5a96dd3

Please sign in to comment.