summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <mclay@redhat.com>2021-01-25 13:38:07 -0800
committerGitHub <noreply@github.com>2021-01-25 15:38:07 -0600
commit21914b2ee3d1747f5e255747314be67134e307a1 (patch)
tree67cbd794e50ee5e6c80e66a1862991961841d72f
parent02b8a88846173f7eb0bf532cbc8fbb6a2dbaf887 (diff)
downloadansible-21914b2ee3d1747f5e255747314be67134e307a1.tar.gz
[stable-2.8] Use a versioned pip bootstrapper in ansible-test. (#73361)
(cherry picked from commit fc590aeb2104c2c4e6a3aacba53852da1d7a26d9) Co-authored-by: Matt Clay <matt@mystile.com>
-rw-r--r--changelogs/fragments/ansible-test-pip-bootstrap-s3.yml2
-rw-r--r--test/runner/setup/remote.sh5
2 files changed, 3 insertions, 4 deletions
diff --git a/changelogs/fragments/ansible-test-pip-bootstrap-s3.yml b/changelogs/fragments/ansible-test-pip-bootstrap-s3.yml
new file mode 100644
index 0000000000..0015b6ca5b
--- /dev/null
+++ b/changelogs/fragments/ansible-test-pip-bootstrap-s3.yml
@@ -0,0 +1,2 @@
+bugfixes:
+ - ansible-test - The ``--remote`` option has been updated to use a versioned ``get-pip.py`` bootstrapper to avoid issues with future releases.
diff --git a/test/runner/setup/remote.sh b/test/runner/setup/remote.sh
index e10987667a..c7ac8d7f10 100644
--- a/test/runner/setup/remote.sh
+++ b/test/runner/setup/remote.sh
@@ -11,11 +11,8 @@ cd ~/
install_pip () {
if ! "${python_interpreter}" -m pip.__main__ --version --disable-pip-version-check 2>/dev/null; then
case "${python_version}" in
- "2.7")
- pip_bootstrap_url="https://bootstrap.pypa.io/${python_version}/get-pip.py"
- ;;
*)
- pip_bootstrap_url="https://bootstrap.pypa.io/get-pip.py"
+ pip_bootstrap_url="https://ansible-ci-files.s3.amazonaws.com/ansible-test/get-pip-20.3.4.py"
;;
esac
curl --silent --show-error "${pip_bootstrap_url}" -o /tmp/get-pip.py