-
Notifications
You must be signed in to change notification settings - Fork 667
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
WARNING Ignored exception from RoleNames .../meta/main.yml (meta): string indices must be integers, not 'str' #4000
Comments
Please create a MINIMAL git repository to reproduce this error message, no extra stuff, build scripts or so, ideally just a single YML file. In some cases you might need to add few more. |
Hi @ssbarnea, here is a minimal test case: git clone https://github.com/nodiscc/minimal-test-ansible-lint-4000
cd minimal-test-ansible-lint-4000/
python3 -m venv .venv && source .venv/bin/activate && pip3 install ansible-lint
ansible-lint roles/test_role/ $ ansible-lint roles/test_role/
WARNING Ignored exception from RoleNames.<bound method RoleNames.matchyaml of role-name: Role name {0} does not match ``^*$`` pattern.> while processing roles/test_role/meta/main.yml (meta): 'dependencies'
Passed: 0 failure(s), 0 warning(s) on 3 files. Last profile that met the validation criteria was 'production'. |
Thanks @ajinkyau |
I don't think this is fixed yet.
In that case, trying to access it as a dict still results in this error.
|
- until the fix for ansible/ansible-lint#4000 is released
Summary
After upgrading from ansible-lint 6.21.1 to 6.22.2, warnings about ignored exceptions started appearing in ansible-lint output
Issue Type
OS / ENVIRONMENT
ansible-lint 6.22.2 using ansible-core:2.16.2 ansible-compat:4.1.11 ruamel-yaml:0.18.5 ruamel-yaml-clib:0.2.8
STEPS TO REPRODUCE
Desired Behavior
No warnings about ignored exceptions should appear.
Actual Behavior
The text was updated successfully, but these errors were encountered: