From eeb42f6bd2243fd8c9b4943e69108ba7c07ef7be Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Thu, 18 Jan 2018 10:04:40 +0000 Subject: [PATCH] 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 --- tasks/keystone_install.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/keystone_install.yml b/tasks/keystone_install.yml index e3e17649..bb6e9375 100644 --- a/tasks/keystone_install.yml +++ b/tasks/keystone_install.yml @@ -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