From 4e726fdb49ad7f94945fb554d175ba3b3ae75de7 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 5 Dec 2019 09:48:17 -0500 Subject: [PATCH] ceph-ansible-pr-syntax-check: pin ansible-lint Latest ansible-lint release (4.2.0) drops ansible 2.6 support so the syntax-check job isn't compatible with the ceph-ansible stable-3.2 branch which uses ansible 2.6. Signed-off-by: Dimitri Savineau --- ceph-ansible-pr-syntax-check/build/build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ceph-ansible-pr-syntax-check/build/build b/ceph-ansible-pr-syntax-check/build/build index 73e3ca06..98a80194 100644 --- a/ceph-ansible-pr-syntax-check/build/build +++ b/ceph-ansible-pr-syntax-check/build/build @@ -9,7 +9,11 @@ set -e virtualenv $TEMPVENV "$VENV"/pip install --upgrade pip "$VENV"/pip install -r "$WORKSPACE"/ceph-ansible/requirements.txt -"$VENV"/pip install ansible-lint +if [[ "$ghprbTargetBranch" == "stable-3.2" ]]; then + "$VENV"/pip install 'ansible-lint<4.2' +else + "$VENV"/pip install ansible-lint +fi ############# -- 2.39.5