From 3fbc850774c007b40399363f4fa4fba691b78b05 Mon Sep 17 00:00:00 2001 From: weslambert Date: Wed, 23 Jun 2021 09:17:37 -0400 Subject: [PATCH] Fix output so that it can be redirected to local file with appropriate syntax --- salt/common/tools/sbin/so-elasticsearch-pipeline-view | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-elasticsearch-pipeline-view b/salt/common/tools/sbin/so-elasticsearch-pipeline-view index 9f799c07f..3239aec0a 100755 --- a/salt/common/tools/sbin/so-elasticsearch-pipeline-view +++ b/salt/common/tools/sbin/so-elasticsearch-pipeline-view @@ -21,5 +21,5 @@ if [ "$1" == "" ]; then {{ ELASTICCURL }} -s -k -L https://{{ NODEIP }}:9200/_ingest/pipeline/* | jq . else - {{ ELASTICCURL }} -s -k -L https://{{ NODEIP }}:9200/_ingest/pipeline/$1 | jq . + {{ ELASTICCURL }} -s -k -L https://{{ NODEIP }}:9200/_ingest/pipeline/$1 | jq .[] fi