Merge "ensure-tox: Avoid Reinstalling tox venv if present"

This commit is contained in:
Zuul 2021-10-04 20:48:06 +00:00 committed by Gerrit Code Review
commit ec6b89b0d4
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
- name: Check if tox is installed
shell: |
command -v {{ tox_executable }} || exit 1
command -v {{ tox_executable }} {{ tox_venv_path }}/bin/tox || exit 1
args:
executable: /bin/bash
register: tox_preinstalled
@ -14,7 +14,7 @@
- name: Export preinstalled tox_exectuable
set_fact:
tox_executable: '{{ tox_preinstalled.stdout }}'
tox_executable: '{{ tox_preinstalled.stdout_lines[0] }}'
cacheable: true
when: tox_preinstalled.rc == 0