Rename local variable component to validation_component for Upstream CI
The usage of the component variable for the local and check jobs is dangerous since this variable is used by the whole component chain for TripleO. This review renamed it to validation_component. Change-Id: Icd8e64282306479a84fc6240142ddcb28ce433e5
This commit is contained in:
parent
d0d7da08ed
commit
3a5e0de20b
@ -51,7 +51,7 @@
|
||||
featureset: '052'
|
||||
validate_services: true
|
||||
enable_validation: true
|
||||
component: validation
|
||||
validation_component: validation
|
||||
|
||||
- project:
|
||||
templates:
|
||||
|
@ -6,7 +6,7 @@ vf_log_dir: "{{ ansible_user_dir }}/logs"
|
||||
ansible_dir: ""
|
||||
|
||||
inventory: "localhost"
|
||||
component: "{{ job.component|default('validation') }}"
|
||||
validation_component: "{{ job.component|default('validation') }}"
|
||||
# both commands can be used:
|
||||
# "openstack tripleo validator" or "validation"
|
||||
# the default is validation because this is the 1st entry available on
|
||||
|
@ -42,13 +42,13 @@
|
||||
- include: run.yaml name="{{ item }}"
|
||||
when:
|
||||
- run_validation|default(false)|bool
|
||||
- component | length > 0
|
||||
with_dict: "{{ validations_list[component] }}"
|
||||
- validation_component | length > 0
|
||||
with_dict: "{{ validations_list[validation_component] }}"
|
||||
|
||||
- include: list.yaml
|
||||
|
||||
- include: show.yaml name="{{ item }}"
|
||||
when:
|
||||
- run_validation|default(false)|bool
|
||||
- component | length > 0
|
||||
with_dict: "{{ validations_list[component] }}"
|
||||
- validation_component | length > 0
|
||||
with_dict: "{{ validations_list[validation_component] }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user