Set default tempest_install_method for meta handlers

For non-integrated tests tempest_install_method is not defined,
so when python_venv_build tries to launch meta handler, it fails with
undefined variable. Once default is set, this will prevent problems

Depends-On: https://review.opendev.org/#/c/665396/

Change-Id: I3cdfe48cae28969dea381bfa325c4bb4769fb4d1
This commit is contained in:
Dmitriy Rabotjagov 2019-06-14 00:51:13 +03:00 committed by Chandan Kumar (raukadah)
parent f7ed5dfcc5
commit 7e6d40ccf1
1 changed files with 5 additions and 1 deletions

View File

@ -25,9 +25,13 @@
retries: 5
delay: 2
# NOTE(noonedeadpunk):
# Applying default filter for tempest_install_method is required despite the variable being defined
# in defaults as in case of non-integrated tests meta handlers from other roles might fail.
- name: Install Tempest packages from PIP
import_tasks: tempest_install_source.yml
when: tempest_install_method == 'source'
when: (tempest_install_method | default('source')) == 'source'
- name: Install stackviz on venv
import_role: