Additional fix for venv build fallback
Additional fixes needed to fix the venv build fallback behavior were found after Ib1b8f2d3710dc3532abc818956a265f1095505b4 merged. Change-Id: Id725255ba386343a0f827ac26c24686578dee953
This commit is contained in:
parent
4cae1f817a
commit
df301cebff
@ -196,7 +196,7 @@
|
|||||||
until: install_packages|success
|
until: install_packages|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
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
|
notify: Restart neutron services
|
||||||
|
|
||||||
- name: CentOS remove python from path first
|
- name: CentOS remove python from path first
|
||||||
@ -206,14 +206,14 @@
|
|||||||
when:
|
when:
|
||||||
- ansible_pkg_mgr == 'yum'
|
- ansible_pkg_mgr == 'yum'
|
||||||
- not neutron_developer_mode | bool
|
- not neutron_developer_mode | bool
|
||||||
- neutron_get_venv | changed or neutron_venv_dir | changed
|
- neutron_get_venv | changed
|
||||||
|
|
||||||
- name: Update virtualenv path
|
- name: Update virtualenv path
|
||||||
command: >
|
command: >
|
||||||
virtualenv-tools --update-path=auto --reinitialize {{ neutron_bin | dirname }}
|
virtualenv-tools --update-path=auto --reinitialize {{ neutron_bin | dirname }}
|
||||||
when:
|
when:
|
||||||
- not neutron_developer_mode | bool
|
- not neutron_developer_mode | bool
|
||||||
- neutron_get_venv | changed or neutron_venv_dir | changed
|
- neutron_get_venv | changed
|
||||||
|
|
||||||
- name: Install optional pip packages
|
- name: Install optional pip packages
|
||||||
pip:
|
pip:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user