diff --git a/changelogs/fragments/1088-fix_key_error_TagsList_cloudtrail.yml b/changelogs/fragments/1088-fix_key_error_TagsList_cloudtrail.yml new file mode 100644 index 00000000000..8c88f52e75e --- /dev/null +++ b/changelogs/fragments/1088-fix_key_error_TagsList_cloudtrail.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - cloudtrail - Fix key error TagList to TagsList (https://github.com/ansible-collections/amazon.aws/issues/1088). diff --git a/plugins/modules/cloudtrail.py b/plugins/modules/cloudtrail.py index 1cf14eb5731..e641fabaaa0 100644 --- a/plugins/modules/cloudtrail.py +++ b/plugins/modules/cloudtrail.py @@ -593,7 +593,7 @@ def main(): results['exists'] = True if not module.check_mode: if tags: - ct_params['TagList'] = ansible_dict_to_boto3_tag_list(tags) + ct_params['TagsList'] = ansible_dict_to_boto3_tag_list(tags) # If we aren't in check_mode then actually create it created_trail = create_trail(module, client, ct_params) # Get the trail status