Reinitialize the virtualenv

In the previous patch removing the virtualenv-tools, we've updated
paths to the proper binaries, but we don't reset the virtualenv
like what we used to do.

Change-Id: I9b20102a82e26b6772bfab342632dcd53ddf18f3
Partial-Bug: #1741634
This commit is contained in:
Jean-Philippe Evrard 2018-01-19 16:16:44 +00:00
parent b451b3c1b4
commit 744c3733f3
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@
shell: |
find {{ horizon_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ horizon_bin | replace ('/','\/') }}\/python/' {{ horizon_bin }}/*
virtualenv {{ horizon_bin | dirname }}
when: horizon_get_venv | changed
tags:
- skip_ansible_lint