From a16db1d4fc318fe27f59561760a1e84fb1226a2c Mon Sep 17 00:00:00 2001 From: Nana He Date: Thu, 13 Jul 2023 14:36:12 +0800 Subject: [PATCH] Specify the pytest-ansible version for the python3 in sonic-mgmt docker 1. For python 3.8.10, pytest-ansible dose not recommend to use the version upper than 3.0.0. 2. There is a bug in the latest pytest-ansible:https://github.com/ansible-community/pytest-ansible/issues/135 --- dockers/docker-sonic-mgmt/Dockerfile.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockers/docker-sonic-mgmt/Dockerfile.j2 b/dockers/docker-sonic-mgmt/Dockerfile.j2 index 0a5e31eac41..ab5cb4615e2 100755 --- a/dockers/docker-sonic-mgmt/Dockerfile.j2 +++ b/dockers/docker-sonic-mgmt/Dockerfile.j2 @@ -80,7 +80,7 @@ RUN pip3 install aiohttp \ pyro4 \ pysnmp==4.4.12 \ pysubnettree \ - pytest-ansible \ + pytest-ansible=2.2.4 \ pytest-html \ pytest-repeat \ pytest-xdist==1.28.0 \ @@ -294,7 +294,7 @@ RUN python3 -m pip install aiohttp \ pyro4 \ pysnmp==4.4.12 \ pysubnettree \ - pytest-ansible \ + pytest-ansible==2.2.4 \ pytest-html \ pytest-repeat \ pytest-xdist==1.28.0 \