Skip to content

Commit

Permalink
Reinitialize the virtualenv
Browse files Browse the repository at this point in the history
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
  • Loading branch information
evrardjp committed Jan 18, 2018
1 parent c2c3282 commit eeb42f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/keystone_install.yml
Expand Up @@ -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
Expand Down

0 comments on commit eeb42f6

Please sign in to comment.