Update the virtualenv paths only when we have a new venv

This re-adds when clauses to the 'Update virtualenv path' task that were
removed in Ic0a0dac84a26aba2ef0ce5410dc7c722570cd410

Change-Id: Ie77f8af288389641cb210550debd3476e30d7a0f
This commit is contained in:
Jimmy McCrory 2016-07-08 10:31:45 -07:00
parent b786654493
commit 86a545d7c5
1 changed files with 3 additions and 0 deletions

View File

@ -143,3 +143,6 @@
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto {{ keystone_bin | dirname }}
when:
- not keystone_developer_mode | bool
- keystone_get_venv | success