Merge "Replace virtualenv-tools by a script"

This commit is contained in:
Zuul 2018-01-16 15:05:38 +00:00 committed by Gerrit Code Review
commit 9a67e54c55
2 changed files with 5 additions and 3 deletions

View File

@ -162,7 +162,6 @@ octavia_requires_pip_packages:
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
- shade
- virtualenv
- virtualenv-tools
- python-openstackclient
# Common pip packages

View File

@ -111,11 +111,14 @@
- octavia_get_venv | changed or octavia_venv_dir | changed
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto --reinitialize {{ octavia_bin | dirname }}
shell: |
find {{ octavia_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ octavia_bin | replace ('/','\/') }}\/python/' {{ octavia_bin }}/*
when:
- not octavia_developer_mode | bool
- octavia_get_venv | changed or octavia_venv_dir | changed
tags:
- skip_ansible_lint
- name: Record the venv tag deployed
ini_file: