From df301cebff7456b63f9f1fab9c1a70047e33930a Mon Sep 17 00:00:00 2001 From: Logan V Date: Wed, 11 Jan 2017 08:34:13 -0600 Subject: [PATCH] Additional fix for venv build fallback Additional fixes needed to fix the venv build fallback behavior were found after Ib1b8f2d3710dc3532abc818956a265f1095505b4 merged. Change-Id: Id725255ba386343a0f827ac26c24686578dee953 --- tasks/neutron_install.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/neutron_install.yml b/tasks/neutron_install.yml index d118dac6..820669b5 100644 --- a/tasks/neutron_install.yml +++ b/tasks/neutron_install.yml @@ -196,7 +196,7 @@ until: install_packages|success retries: 5 delay: 2 - when: not neutron_get_venv | success or neutron_developer_mode | bool + when: neutron_get_venv | failed or neutron_get_venv | skipped or neutron_developer_mode | bool notify: Restart neutron services - name: CentOS remove python from path first @@ -206,14 +206,14 @@ when: - ansible_pkg_mgr == 'yum' - not neutron_developer_mode | bool - - neutron_get_venv | changed or neutron_venv_dir | changed + - neutron_get_venv | changed - name: Update virtualenv path command: > virtualenv-tools --update-path=auto --reinitialize {{ neutron_bin | dirname }} when: - not neutron_developer_mode | bool - - neutron_get_venv | changed or neutron_venv_dir | changed + - neutron_get_venv | changed - name: Install optional pip packages pip: