Add missing [] around all_nodes_extra_map_data

The value from all_nodes_extra_map_data must be a list so it can be
concatenated with the existing services data.

It appears the extra [] was accidentally dropped in a previous commit:
eb5bfcf187

Change-Id: I0d7778c7907fcb87aa9b1b6d9e33a1c430cbf025
This commit is contained in:
James Slagle 2019-10-03 13:55:55 -04:00
parent 8f03993add
commit 1711c432d7
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
{# <service>_short_bootstrap_node_name: hostname #}
{% set services = (groups[service] | default ([]) | list ) %}
{% if all_nodes_extra_map_data[service ~ '_short_bootstrap_node_name'] is defined %}
{% set services = services + all_nodes_extra_map_data[service ~ '_short_bootstrap_node_name'] %}
{% set services = services + [all_nodes_extra_map_data[service ~ '_short_bootstrap_node_name']] %}
{% endif %}
{% if (services | length) > 0 %}
{% set _ = all_nodes.__setitem__((service ~ '_short_bootstrap_node_name'), (services | sort | first)) %}