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:
parent
9e188bea1a
commit
0c31f86a5d
@ -38,7 +38,7 @@ repos:
|
||||
verbose: true
|
||||
entry: env ANSIBLE_LIBRARY=library ansible-lint --force-color -p -v
|
||||
additional_dependencies:
|
||||
- ansible-core
|
||||
- 'ansible-core>=2.11,<2.12'
|
||||
- yamllint
|
||||
- repo: https://github.com/openstack-dev/bashate.git
|
||||
rev: 2.0.0
|
||||
|
Loading…
Reference in New Issue
Block a user