From bfeab0700eb403b0dee2c7133bb023574884d2dc Mon Sep 17 00:00:00 2001 From: Martin Kopec Date: Wed, 1 Sep 2021 20:11:42 +0000 Subject: [PATCH] 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 --- tasks/generate-tempestconf.sh.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/generate-tempestconf.sh.j2 b/tasks/generate-tempestconf.sh.j2 index b342670..44fe503 100644 --- a/tasks/generate-tempestconf.sh.j2 +++ b/tasks/generate-tempestconf.sh.j2 @@ -13,7 +13,9 @@ discover-tempest-config \ {% if deployer_input is defined %} --deployer-input {{ deployer_input }} \ {% 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 %} {{ additional_tempestconf_params }} \ {% endif %}