From 0c31f86a5d30bcccaf8aad7776a8a352fcf0b059 Mon Sep 17 00:00:00 2001 From: mciecier Date: Thu, 18 May 2023 03:56:55 +0200 Subject: [PATCH] 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]https://opendev.org/openstack/tripleo-quickstart-extras/src/commit/a21d6b35ab91ced2546f5ce33784ec2b2cf57f01/.pre-commit-config.yaml#L41 Change-Id: Ic2c9c09676232f4779feb8bfe6d91698dbca9765 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f88729077..ebc9c26b6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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