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: Idf8f634bff5b247639a4673e63aef880a5bfa1d6
Partial-Bug: #1741634
This commit is contained in:
Jean-Philippe Evrard 2018-01-18 10:04:40 +00:00
parent c2c328279b
commit eeb42f6bd2

View File

@ -170,10 +170,11 @@
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
- keystone_get_venv | changed
- name: Update virtualenv path
- name: Reset virtualenv and update its paths
shell: |
find {{ keystone_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ keystone_bin | replace ('/','\/') }}\/python/' {{ keystone_bin }}/*
virtualenv {{ keystone_bin | dirname }}
when: keystone_get_venv | changed
tags:
- skip_ansible_lint