From 374ace641d6b2b1994d64c741506fc166b8931f5 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Fri, 8 Jul 2016 10:34:35 -0700 Subject: [PATCH] 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 --- tasks/glance_install.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/glance_install.yml b/tasks/glance_install.yml index 0a226953..b14b2654 100644 --- a/tasks/glance_install.yml +++ b/tasks/glance_install.yml @@ -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 -