extra_tht_configs is broken

This is the generated string without this patch:
"extra_tht_config_args": " -e {{ working_dir }}/overcloud_debug.yaml{{
working_dir }} ",

There's a specific note about this behavior in the ansible doc:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#searching-strings-with-regular-expressions

Change-Id: I372072b17a71985e1a20cf250a0165a256463fe8
This commit is contained in:
David Vallee Delisle 2020-12-09 14:03:58 -05:00
parent 5a754a3ce3
commit 711b336853
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
extra_tht_config_args: >-
{{ extra_tht_config_args|default('') }}
{% if extra_tht_configs|default([])|length > 0 %}
-e {{ extra_tht_configs | default([]) | map('basename') | map('regex_replace', '(.*)', "{{ working_dir }}/\1") | join (' -e ') }}
-e {{ extra_tht_configs | default([]) | map('basename') | map('regex_replace', '(.+)', working_dir + "/\1") | join (' -e ') }}
{% endif %}
cacheable: true