Use ansible 2.12 for testcases_prepare (#8763)

tests/requirements.txt links to tests/requirements-2.12.txt, so
Kubespray uses ansible 2.12 by default for testing. However we
forgot to update testcases_prepare.sh to use ansible 2.12.
This updates testcases_prepare to use ansible 2.12.
pull/8770/head
Kenichi Omichi 2022-05-02 11:34:31 -07:00 committed by GitHub
parent 26a0b0f1e8
commit f184725c5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -euxo pipefail set -euxo pipefail
: ${ANSIBLE_MAJOR_VERSION:=2.10} : ${ANSIBLE_MAJOR_VERSION:=2.12}
/usr/bin/python -m pip uninstall -y ansible ansible-base ansible-core /usr/bin/python -m pip uninstall -y ansible ansible-base ansible-core
/usr/bin/python -m pip install -r tests/requirements-${ANSIBLE_MAJOR_VERSION}.txt /usr/bin/python -m pip install -r tests/requirements-${ANSIBLE_MAJOR_VERSION}.txt