You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With 6.17.0 an excluded path like ./{{a}} is no longer excluded.
Issue Type
Bug Report
OS / ENVIRONMENT
$ ansible-lint --versionansible-lint 6.17.0 using ansible-core:2.14.3 ruamel-yaml:0.17.26 ruamel-yaml-clib:0.2.7
ansible installation method: pip
ansible-lint installation method: pip
STEPS TO REPRODUCE
Have a broken yaml file named {{a}}/a.yml.
Have an .ansible_lint file with:
---
exclude_paths:
- ./{{a}}
Desired Behavior
With ansible-lint<=6.16.1:
$ ansible-lint -c .ansible_lint
Passed with production profile: 0 failure(s), 0 warning(s) on 0 files.
A new release of ansible-lint is available: 6.16.1 → 6.17.0 Upgrade by running: pip install --upgrade ansible-lint
CRITICAL Linter finished without analyzing any file, check configuration and arguments given.
(ansible-lint 6.16.2 didn't respect excluded_paths at all)
Actual Behavior
$ ansible-lint -c .ansible_lint
WARNING Listing 1 violation(s) that are fatal
load-failure[runtimeerror]: Failed to load YAML file
{{a}}/a.yml:1 mapping values are not allowed in this context
in "<unicode string>", line 2, column 2
Rule Violation Summary
count tag profile rule associated tags
1 load-failure[runtimeerror] min core, unskippable
Failed after : 1 failure(s), 0 warning(s) on 2 files.
The text was updated successfully, but these errors were encountered:
Summary
With 6.17.0 an excluded path like
./{{a}}
is no longer excluded.Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Have a broken yaml file named
{{a}}/a.yml
.Have an
.ansible_lint
file with:Desired Behavior
With ansible-lint<=6.16.1:
(ansible-lint 6.16.2 didn't respect excluded_paths at all)
Actual Behavior
The text was updated successfully, but these errors were encountered: