diff --git a/salt/common/tools/sbin/so-elasticsearch-templates-list b/salt/common/tools/sbin/so-elasticsearch-templates-list index d4d080938..85ef27760 100755 --- a/salt/common/tools/sbin/so-elasticsearch-templates-list +++ b/salt/common/tools/sbin/so-elasticsearch-templates-list @@ -18,10 +18,14 @@ . /usr/sbin/so-common if [ "$1" == "" ]; then {% if grains['role'] in ['so-node','so-heavynode'] %} - curl -s -k kttps://{{ NODEIP }}:9200/_template/* | jq 'keys' + curl -s -k https://{{ NODEIP }}:9200/_template/* | jq 'keys' {% else %} curl -s {{ NODEIP }}:9200/_template/* | jq 'keys' {% endif %} else + {% if grains['role'] in ['so-node','so-heavynode'] %} + curl -s -k https://{{ NODEIP }}:9200/_template/$1 | jq + {% else %} curl -s {{ NODEIP }}:9200/_template/$1 | jq + {% endif %} fi