Skip to content

Fix Jinja filter in Ansible task in mount_option template#14345

Merged
Mab879 merged 1 commit intoComplianceAsCode:masterfrom
jan-cerny:mount_template_ansible
Jan 30, 2026
Merged

Fix Jinja filter in Ansible task in mount_option template#14345
Mab879 merged 1 commit intoComplianceAsCode:masterfrom
jan-cerny:mount_template_ansible

Conversation

@jan-cerny
Copy link
Collaborator

The Jinja filter lower produces a string, not a list, but the rest of the code assumes that the result is a list. The correct approach is to use the map function to apply lower on each element of the given list separately.

Fixes: #14259

The Jinja filter `lower` produces a string, not a list, but the
rest of the code assumes that the result is a list. The correct
approach is to use the `map` function to apply `lower` on each
element of the given list separately.

Fixes: ComplianceAsCode#14259
@jan-cerny jan-cerny added this to the 0.1.80 milestone Jan 30, 2026
@jan-cerny jan-cerny added the Ansible Ansible remediation update. label Jan 30, 2026
@github-actions
Copy link

ATEX Test Results

Test artifacts have been submitted to Testing Farm.

Results: View Test Results
Workflow Run: View Workflow Details

This comment was automatically generated by the ATEX workflow.

@Mab879 Mab879 self-assigned this Jan 30, 2026
@Mab879 Mab879 merged commit 4c7c456 into ComplianceAsCode:master Jan 30, 2026
63 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ansible Ansible remediation update.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Debian 13] mount_option remediation fails: mount_info dictionary creation iterates over characters instead of words

2 participants