Ensure the fallback uses the same install method

We have a test to ensure the install method of pip is from distro
or get-pip. But if an issue appeared in the first task, the
fallback method will automatically fallback to get-pip instead
of fallback to the isolated version of the pre-defined CLI.

This should ensure consistency by not using get-pip if it's not
needed.

Change-Id: I7aa4056ffb9bc2162f0960e74b6458bcbffa141f
This commit is contained in:
Jean-Philippe Evrard 2018-07-19 12:19:53 +02:00
parent ccdc8c4575
commit b6024a9184
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
rescue: rescue:
- name: Install PIP (fall back mode) - name: Install PIP (fall back mode)
command: > command: >
python /opt/get-pip.py --isolated {{ pip_install_script.stdout }} --isolated
{{ (pip_install_upper_constraints is defined) | {{ (pip_install_upper_constraints is defined) |
ternary('--constraint ' ~ pip_install_upper_constraints | default(''), '') }} ternary('--constraint ' ~ pip_install_upper_constraints | default(''), '') }}
{{ pip_source_install_options }} {{ pip_source_install_options }}