Skip to content
Snippets Groups Projects
Commit 97cd1731 authored by Andrey Kurilin's avatar Andrey Kurilin
Browse files

Fix broken list concatenation in horizon role


Starting with ansible-core 2.13, list concatenation format is changed
and does not support concatenation operations outside of the jinja template.

The format change:

  "[1] + {{ [2] }}" -> "{{ [1] + [2] }}"

This affects the horizon role that iterates over existing policy files to
override and concatenate them into a single variable.

Co-Authored-By: default avatarDr. Jens Harbott <harbott@osism.tech>

Closes-Bug: #2045660
Change-Id: I91a2101ff26cb8568f4615b4cdca52dcf09e6978
parent 7112d5f1
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,6 @@ ...@@ -20,6 +20,6 @@
- name: Update custom policy file name - name: Update custom policy file name
set_fact: set_fact:
custom_policy: "{{ custom_policy }} + [ '{{ overwritten_files.results.0.stat.path }}' ]" custom_policy: "{{ custom_policy + [overwritten_files.results.0.stat.path] }}"
when: when:
- overwritten_files.results - overwritten_files.results
---
fixes:
- |
Starting with ansible-core 2.13, list concatenation format is changed
which resulted in inability to override horizon policy files.
See `LP#2045660 <https://launchpad.net/bugs/2045660>`__
for more details.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment