Merge "Replace virtualenv-tools by a script"

This commit is contained in:
Zuul 2018-01-16 12:59:54 +00:00 committed by Gerrit Code Review
commit ff1d28a2f2
2 changed files with 5 additions and 3 deletions

View File

@ -160,7 +160,6 @@ gnocchi_services:
#: Gnocchi packages that must be installed before anything else
gnocchi_requires_pip_packages:
- virtualenv
- virtualenv-tools
- python-keystoneclient # Keystoneclient needed for OSA keystone lib
- httplib2 # so we can use the uri module

View File

@ -113,9 +113,12 @@
- gnocchi_get_venv | changed
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto --reinitialize {{ gnocchi_bin | dirname }}
shell: |
find {{ gnocchi_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ gnocchi_bin | replace ('/','\/') }}\/python/' {{ gnocchi_bin }}/*
when: gnocchi_get_venv | changed
tags:
- skip_ansible_lint
- name: Record the venv tag deployed
ini_file: