From 1711c432d73827550274df18c2eb4a6a15b7dcb8 Mon Sep 17 00:00:00 2001 From: James Slagle Date: Thu, 3 Oct 2019 13:55:55 -0400 Subject: [PATCH] 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: eb5bfcf187bbcaea3f0549a014650a168a3de1b6 Change-Id: I0d7778c7907fcb87aa9b1b6d9e33a1c430cbf025 --- tripleo_ansible/roles/tripleo-hieradata/templates/all_nodes.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleo_ansible/roles/tripleo-hieradata/templates/all_nodes.j2 b/tripleo_ansible/roles/tripleo-hieradata/templates/all_nodes.j2 index c3ff006a7..ed6caf90e 100644 --- a/tripleo_ansible/roles/tripleo-hieradata/templates/all_nodes.j2 +++ b/tripleo_ansible/roles/tripleo-hieradata/templates/all_nodes.j2 @@ -17,7 +17,7 @@ {# _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)) %}