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
Traceback (most recent call last):
File "/home/vovan/.cache/pypoetry/virtualenvs/foo-3I0hE4B9-py3.11/bin/ansible-lint", line 8, in <module>
sys.exit(_run_cli_entrypoint())
^^^^^^^^^^^^^^^^^^^^^
File "/home/vovan/.cache/pypoetry/virtualenvs/foo-3I0hE4B9-py3.11/lib/python3.11/site-packages/ansiblelint/__main__.py", line 312, in _run_cli_entrypoint
sys.exit(main(sys.argv))
^^^^^^^^^^^^^^
File "/home/vovan/.cache/pypoetry/virtualenvs/foo-3I0hE4B9-py3.11/lib/python3.11/site-packages/ansiblelint/__main__.py", line 291, in main
app.render_matches(result.matches)
File "/home/vovan/.cache/pypoetry/virtualenvs/foo-3I0hE4B9-py3.11/lib/python3.11/site-packages/ansiblelint/app.py", line 105, in render_matches
with self.options.sarif_file.open("w", encoding="utf-8") as sarif_file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AnsibleUnicode' object has no attribute 'open'
Issue Type
Bug Report
OS / ENVIRONMENT
ansible-lint 6.17.1 using ansible-core:2.15.0 ruamel-yaml:0.17.31 ruamel-yaml-clib:0.2.7
Summary
Issue Type
OS / ENVIRONMENT
ansible-lint 6.17.1 using ansible-core:2.15.0 ruamel-yaml:0.17.31 ruamel-yaml-clib:0.2.7
STEPS TO REPRODUCE
Desired Behavior
Not to fail.
Actual Behavior
With any playbook i'm getting traceback because of sarif_file option.
The text was updated successfully, but these errors were encountered: