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: I20a5ad10f89bafb841f5718d74317fcd22260742
Partial-Bug: #1741634
This commit is contained in:
Jean-Philippe Evrard 2018-01-19 16:08:20 +00:00
parent 9a67e54c55
commit d79374bb9c
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@
shell: |
find {{ octavia_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ octavia_bin | replace ('/','\/') }}\/python/' {{ octavia_bin }}/*
virtualenv {{ octavia_bin | dirname }}
when:
- not octavia_developer_mode | bool
- octavia_get_venv | changed or octavia_venv_dir | changed