From 67173d296c71b5d47f3e0243a457c39c627a930b Mon Sep 17 00:00:00 2001 From: Logan V Date: Tue, 15 Nov 2016 22:15:23 -0600 Subject: [PATCH] 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: I1d6c3765e781b706244fdf0e91c1d6a51679d062 Partial-Bug: #1637509 --- tasks/designate_install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/designate_install.yml b/tasks/designate_install.yml index ccbf6c0..ff4440d 100644 --- a/tasks/designate_install.yml +++ b/tasks/designate_install.yml @@ -93,7 +93,7 @@ - name: Update virtualenv path command: > - virtualenv-tools --update-path=auto {{ designate_bin | dirname }} + virtualenv-tools --update-path=auto --reinitialize {{ designate_bin | dirname }} when: - not designate_developer_mode | bool - designate_get_venv | changed or designate_venv_dir | changed