Merge "Replace virtualenv-tools by a script"
This commit is contained in:
commit
9a67e54c55
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user