Fix rich version for ansible-lint

Ansible-lint prior to v5.3.1 has issue with reach version >=11.0.0.
In order to cherry-pick fix to stable branches we fix rich version.

We can't use requirements as rich is neither in blacklist nor in
global-requirements, so must be handled independently

This should be reverted with ansible-lint version bump.

Change-Id: Idb42c1ebd138fdfeaa4e87e383e3bac0e1fdedf8
This commit is contained in:
Dmitriy Rabotyagov 2022-01-10 13:53:01 +02:00
parent 954567346e
commit a67fd5e4c5
1 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,8 @@ if [[ "${ACTION}" == "varstest" ]]; then
elif [[ "${ACTION}" == "linters" ]]; then
pushd "${OSA_CLONE_DIR}"
# Install linter tools
${PIP_COMMAND} install --isolated ${PIP_OPTS} -r ${OSA_CLONE_DIR}/test-requirements.txt
# TODO(noonedeadpunk): Drop rich with ansible-lint bump, bug closed with https://github.com/ansible-community/ansible-lint/pull/1797
${PIP_COMMAND} install --isolated ${PIP_OPTS} -r ${OSA_CLONE_DIR}/test-requirements.txt 'rich>=9.5.1,<11.0.0'
# Disable Ansible color output
export ANSIBLE_NOCOLOR=1
# Create ansible logging directory