Skip to content

Commit

Permalink
Add changelog fragment
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Feb 21, 2023
1 parent d176b85 commit 949e615
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/1384-cloudtrail-disable_encryption.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- cloudtrail - Allow to disable encryption by ´´kms_key_id=´´ (https://github.com/ansible-collections/amazon.aws/pull/1384).
10 changes: 5 additions & 5 deletions plugins/modules/cloudtrail.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

DOCUMENTATION = '''
DOCUMENTATION = """
---
module: cloudtrail
version_added: 5.0.0
Expand Down Expand Up @@ -95,7 +95,7 @@
- amazon.aws.tags
- amazon.aws.boto3
'''
"""

EXAMPLES = '''
- name: create single region cloudtrail
Expand Down Expand Up @@ -487,8 +487,8 @@ def main():
if module.params['enable_log_file_validation'] is not None:
ct_params['EnableLogFileValidation'] = module.params['enable_log_file_validation']

if module.params['kms_key_id'] is not None:
ct_params['KmsKeyId'] = module.params['kms_key_id']
if module.params["kms_key_id"] is not None:
ct_params["KmsKeyId"] = module.params["kms_key_id"]

client = module.client('cloudtrail')
region = module.region
Expand Down Expand Up @@ -592,7 +592,7 @@ def main():
results['exists'] = True
if not module.check_mode:
if tags:
ct_params['TagsList'] = 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
Expand Down

0 comments on commit 949e615

Please sign in to comment.