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 Icfdfe3a6d47413875a49af3c38537fbd342bc16a

Change-Id: I7160f0336368d4a46c07a05a181f04e0d4569013
This commit is contained in:
Jimmy McCrory 2016-07-08 10:34:35 -07:00
parent 2201cf871f
commit 374ace641d

View File

@ -184,7 +184,9 @@
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto {{ glance_bin | dirname }}
when:
- not glance_developer_mode | bool
- glance_get_venv | success
tags:
- glance-install
- glance-pip-packages