Avoid failure to install zuul when venv exists

Fixes case where a succesfull creation of the
virtualenv but failure to install zuul would
make the function useless as it would always
miss installing zull.

Change-Id: Ie5ef82765120094e8147b05443626e2012273fba
This commit is contained in:
Sorin Sbarnea 2018-05-25 10:21:26 +01:00
parent d2bd6faf5e
commit 03f7aad550
1 changed files with 3 additions and 0 deletions

View File

@ -191,6 +191,9 @@ export WORKSPACE=\`pwd\`
if [[ ! -e /usr/zuul-env ]]; then
virtualenv /usr/zuul-env
fi
if [[ ! -e /usr/zuul-env/bin/zuul-cloner ]]; then
/usr/zuul-env/bin/pip install zuul
fi