Fixes ansible-lint in tox linter job

Ansible-lint fails with error:
an AnsibleCollectionFinder has not been installed in this process

This patch adjusts dependencies of ansible-lint in pre-commit
configuration file to pin version of ansible-core used.
Ansible-core dependency is set to the same as in
tripleo-quickstart-extras repos[1] where the error is not showing up.

Related-Bug: #2019875
[1]a21d6b35ab/.pre-commit-config.yaml (L41)

Change-Id: Ic2c9c09676232f4779feb8bfe6d91698dbca9765
This commit is contained in:
mciecier 2023-05-18 03:56:55 +02:00
parent 9e188bea1a
commit 0c31f86a5d

View File

@ -38,7 +38,7 @@ repos:
verbose: true verbose: true
entry: env ANSIBLE_LIBRARY=library ansible-lint --force-color -p -v entry: env ANSIBLE_LIBRARY=library ansible-lint --force-color -p -v
additional_dependencies: additional_dependencies:
- ansible-core - 'ansible-core>=2.11,<2.12'
- yamllint - yamllint
- repo: https://github.com/openstack-dev/bashate.git - repo: https://github.com/openstack-dev/bashate.git
rev: 2.0.0 rev: 2.0.0