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
ansible-lint command in our CI container crashes when the following commands are sent
git clone https://our_project.git # done by CI
cd our_project # done by CI
ansible-lint -c .ansible-lint roles/
with
Traceback (most recent call last):
File "/usr/bin/ansible-lint", line 8, in <module>
sys.exit(_run_cli_entrypoint())
~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/ansiblelint/__main__.py", line 416, in _run_cli_entrypoint
sys.exit(main(sys.argv))
~~~~^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ansiblelint/__main__.py", line 368, in main
result = get_matches(rules, options)
File "/usr/lib/python3/dist-packages/ansiblelint/runner.py", line 690, in get_matches
matches.extend(runner.run())
~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/ansiblelint/runner.py", line 161, in run
matches = self._run()
File "/usr/lib/python3/dist-packages/ansiblelint/runner.py", line 273, in _run
matches.extend(
~~~~~~~~~~~~~~^
self._emit_matches([file for file in files if not file.failed()])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3/dist-packages/ansiblelint/runner.py", line 472, in _emit_matches
children = self.find_children(lintable)
File "/usr/lib/python3/dist-packages/ansiblelint/runner.py", line 515, in find_children
for child in self.play_children(
~~~~~~~~~~~~~~~~~~^
lintable,
^^^^^^^^^
...<2 lines>...
playbook_dir,
^^^^^^^^^^^^^
):
^
File "/usr/lib/python3/dist-packages/ansiblelint/runner.py", line 582, in play_children
return delegate_map[k](lintable, k, v, parent_type)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ansiblelint/utils.py", line 451, in roles_children
results.extend(self._look_for_role_files(basedir, role))
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ansiblelint/utils.py", line 516, in _look_for_role_files
role_path = self._rolepath(basedir, role)
File "/usr/lib/python3/dist-packages/ansiblelint/utils.py", line 534, in _rolepath
namespace_name, collection_name, role_name = parse_fqcn(role)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 3)
Desired Behavior
Using the exact same container with the exact same configuration but starting ansible-lint outside the project don't crash (we still have to fix a lot of things)
Maybe a duplicate of #4452
Summary
When using ansible-lint in CI with Docker, the command crashes with
ValueError: too many values to unpack (expected 3)
Issue Type
OS / ENVIRONMENT
using official Debian container
debian:testing-slim
with the following Dockerfilewith
.ansible-lint-requirements.yml
asSTEPS TO REPRODUCE
ansible-lint command in our CI container crashes when the following commands are sent
with
Desired Behavior
Using the exact same container with the exact same configuration but starting
ansible-lint
outside the project don't crash (we still have to fix a lot of things)Possible security bugs should be reported via email to
[email protected]
Actual Behavior
See Step to reproduce
The text was updated successfully, but these errors were encountered: