Fix share_tempestconf_overrides usage

Use share_tempestconf_overrides value only when shared_file_system
is in refstack_target_programs, otherwise the variable contains
uncertain data. The commits wraps the variable to an if statement.

Change-Id: I0764c99d3c8f1a8fa36c8926e801ad1d0a60dbd2
This commit is contained in:
Martin Kopec 2021-09-01 20:11:42 +00:00
parent 07e7efd1a9
commit bfeab0700e

View File

@ -13,7 +13,9 @@ discover-tempest-config \
{% if deployer_input is defined %} {% if deployer_input is defined %}
--deployer-input {{ deployer_input }} \ --deployer-input {{ deployer_input }} \
{% endif %} {% endif %}
{{ share_tempestconf_overrides | default([]) | join(' ') }} \ {% if 'shared_file_system' in refstack_target_programs %}
{{ share_tempestconf_overrides | join(' ') }} \
{% endif %}
{% if additional_tempestconf_params is defined %} {% if additional_tempestconf_params is defined %}
{{ additional_tempestconf_params }} \ {{ additional_tempestconf_params }} \
{% endif %} {% endif %}