Merge "Fix virtualenv-tools issue"

This commit is contained in:
Jenkins 2016-11-29 14:14:01 +00:00 committed by Gerrit Code Review
commit 24666b006c

View File

@ -126,6 +126,15 @@
when: cinder_developer_mode | bool when: cinder_developer_mode | bool
notify: Restart cinder services notify: Restart cinder services
- name: CentOS remove python from path first
file:
path: "{{ cinder_bin | dirname }}/bin/python2.7"
state: "absent"
when:
- ansible_pkg_mgr == 'yum'
- not cinder_developer_mode | bool
- cinder_get_venv | changed or cinder_venv_dir | changed
- name: Update virtualenv path - name: Update virtualenv path
command: > command: >
virtualenv-tools --update-path=auto --reinitialize {{ cinder_bin | dirname }} virtualenv-tools --update-path=auto --reinitialize {{ cinder_bin | dirname }}