fix for rendering error >1 search node

Fails rendering if you have more than one search node.
This commit is contained in:
jtgreen-cse
2020-10-20 13:24:53 -04:00
committed by GitHub
parent 4a9fcfb8cf
commit eaa41266a2

View File

@@ -33,7 +33,7 @@
{%- if salt['pillar.get']('nodestab', {}) %}
"remoteHostUrls": [
{%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
"https://{{ SN.split('_')|first }}:9200"{{ "," if not loop.last }}
"https://{{ SN.split('_')|first }}:9200"{{ "," if not loop.last else ""}}
{%- endfor %}
],
{%- endif %}