From fb9a0ab8b627e51dc1c6898bd7b3f4f05ca2b3aa Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 17 Oct 2023 17:33:53 -0400 Subject: [PATCH] endif not fi in jinja --- pillar/logstash/nodes.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pillar/logstash/nodes.sls b/pillar/logstash/nodes.sls index 228122b03..a77978821 100644 --- a/pillar/logstash/nodes.sls +++ b/pillar/logstash/nodes.sls @@ -8,7 +8,7 @@ %} # only add a node to the pillar if it returned an ip from the mine -{% if ip[0] | length > 0%} +{% if ip | length > 0%} {% set hostname = cached_grains[minionid]['host'] %} {% set node_type = minionid.split('_')[1] %} {% if node_type not in node_types.keys() %} @@ -20,7 +20,7 @@ {% do node_types[node_type][hostname].update(ip[0]) %} {% endif %} {% endif %} -{% fi %} +{% endif %} {% endfor %}