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: Ida7378a3502f52e55bcc9e816c2b4cd77292a5dc
Partial-Bug: #1741634
This commit is contained in:
Jean-Philippe Evrard 2018-01-19 16:54:07 +00:00
parent b9014132d5
commit b21bec6c31

View File

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