To fix https://github.com/advisories/GHSA-2pfh-q76x-gwvm
Signed-off-by: Zack Cerza <zack@redhat.com>
# See https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_2.10.html#known-issues
if [ -f "$VENV/bin/ansible" ]; then
ansible_version=$($VENV/bin/pip list --format json | python3 -c "import sys; import json; print(list(filter(lambda i: i['name'] == 'ansible', json.loads(sys.stdin.read())))[0]['version'])")
- uninstall_ansible=$(./$VENV/bin/python3 -c "from packaging.version import parse; print(parse('$ansible_version') < parse('2.10.0'))")
+ uninstall_ansible=$(./$VENV/bin/python3 -c "from packaging.version import parse; print(parse('$ansible_version') < parse('4.2.0'))")
if [ "$uninstall_ansible" = "True" ]; then
./$VENV/bin/pip uninstall -y ansible ansible-base ansible-core
fi
#
# pip-compile --extra=test pyproject.toml
#
-ansible==2.10.7
+ansible==4.10.0
# via teuthology (pyproject.toml)
-ansible-base==2.10.17
+ansible-core==2.11.11
# via ansible
apache-libcloud==3.3.1
# via teuthology (pyproject.toml)
# via teuthology (pyproject.toml)
cryptography==3.4.7
# via
- # ansible-base
+ # ansible-core
# openstacksdk
# paramiko
# pyopenssl
# python-novaclient
# python-openstackclient
jinja2==3.0.1
- # via ansible-base
+ # via ansible-core
jmespath==0.10.0
# via
# boto3
# python-openstackclient
packaging==21.0
# via
- # ansible-base
+ # ansible-core
# oslo.utils
# pytest
# tox
# oslo.utils
pyyaml==5.4.1
# via
- # ansible-base
+ # ansible-core
# cliff
# openstacksdk
# oslo.config
# teuthology (pyproject.toml)
requestsexceptions==1.4.0
# via openstacksdk
+resolvelib==0.5.4
+ # via ansible-core
rfc3986==1.5.0
# via oslo.config
s3transfer==0.5.2
packages = find:
install_requires =
PyYAML
- ansible>=2.10,<3.0
+ ansible>=4.2.0
apache-libcloud
argparse>=1.2.1
backports.ssl-match-hostname