-
Notifications
You must be signed in to change notification settings - Fork 688
Address too many values to unpack when there's subdirectories for roles #4566
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
base: main
Are you sure you want to change the base?
Address too many values to unpack when there's subdirectories for roles #4566
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked with core and they mentioned that also multiple directories are supported. Please change it to allow any number of levels.
I've updated the code, so it now handles multiple levels, and updated the test as well. |
@ssbarnea just fyi that this is impacting certified collection approvals. |
…too_many_values_to_unpack # Conflicts: # tox.ini
Fixes #4452
<...>
File "/home/user/.local/share/virtualenvs/globster-e1myMWbg/lib/python3.11/site-packages/ansiblelint/utils.py", line 563, in _rolepath
namespace_name, collection_name, role_name = parse_fqcn(role)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 3)
This change supports 1 subdirectory level (similar to the playbook code)