Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing utf8-2.x #2131

Merged
merged 3 commits into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion roles/aws/aws_backup_validation/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,22 @@
dest: "{{ _ce_provision_build_dir }}/validation_report.zip"
format: zip

- name: Debug variables to check for non-UTF-8 characters
debug:
msg:
- "Name: {{ aws_backup_validation.name }}"
- "Description: {{ aws_backup_validation.description }}"
- "Handler: {{ aws_backup_validation.handler }}"
- "Tags Name: {{ item }}_backup_validation"

- name: Check for non-UTF-8 characters in variables
debug:
msg:
- "Name contains non-UTF-8 characters: {{ (aws_backup_validation.name | string | regex_search('[^\x00-\x7F]')) }}"
- "Description contains non-UTF-8 characters: {{ (aws_backup_validation.description | string | regex_search('[^\x00-\x7F]')) }}"
- "Handler contains non-UTF-8 characters: {{ (aws_backup_validation.handler | string | regex_search('[^\x00-\x7F]')) }}"
- "Tags Name contains non-UTF-8 characters: {{ (item | string | regex_search('[^\x00-\x7F]')) }}"

- name: Create Lambda functions
amazon.aws.lambda:
name: "{{ aws_backup_validation.name }}_{{ item }}"
Expand All @@ -92,7 +108,7 @@
tags:
Name: "{{ item }}_backup_validation"
register: _lambda_functions
failed_when: _lambda_functions.rc | int != 0
failed_when: "{{ (_lambda_functions.changed | default(false) | bool) == false }}"
loop: "{{ aws_backup_validation.resources }}"

- name: Create validation report functions
Expand Down
Loading