From b6024a918442c0f89e207e496f497d14a8d55ba1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Thu, 19 Jul 2018 12:19:53 +0200 Subject: [PATCH] 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 --- tasks/install_source.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install_source.yml b/tasks/install_source.yml index 7b49168..8263303 100644 --- a/tasks/install_source.yml +++ b/tasks/install_source.yml @@ -30,7 +30,7 @@ rescue: - name: Install PIP (fall back mode) command: > - python /opt/get-pip.py --isolated + {{ pip_install_script.stdout }} --isolated {{ (pip_install_upper_constraints is defined) | ternary('--constraint ' ~ pip_install_upper_constraints | default(''), '') }} {{ pip_source_install_options }}