Reinitialize venv upon install

Reinitializes (copies python, etc binaries) into the venv when
dropping a new venv into place. This is needed because the Python
binary packaged with the venv may not match the Python running on
the host it is being installed to. (ie. in the case of a Xenial
repo container and a Trusty target host.)

Change-Id: I06c58b7fee5cf5755b9490beb94c01dd7a8a3921
Partial-Bug: #1637509
This commit is contained in:
Logan V 2016-11-15 22:15:23 -06:00
parent 872d98c03e
commit a420729b28
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto {{ heat_bin | dirname }}
virtualenv-tools --update-path=auto --reinitialize {{ heat_bin | dirname }}
when:
- not heat_developer_mode | bool
- heat_get_venv | changed or heat_venv_dir | changed