From a4d763c1e571152d82b0e4c48a05d7f7a316932a Mon Sep 17 00:00:00 2001 From: reyesj2 <94730068+reyesj2@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:50:04 -0600 Subject: [PATCH] use curl vs es query to force PUT request Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com> --- salt/manager/tools/sbin/soup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/manager/tools/sbin/soup b/salt/manager/tools/sbin/soup index 98a7f9402..3a1e60fd2 100755 --- a/salt/manager/tools/sbin/soup +++ b/salt/manager/tools/sbin/soup @@ -947,7 +947,7 @@ update_elasticsearch_index_settings() { if [ $exists -eq 200 ]; then echo "$idx index found..." echo "Updating $idx index settings" - so-elasticsearch-query $idx/_settings -d "$JSON_STRING" -XPUT + curl -K /opt/so/conf/elasticsearch/curl.config -s -k -L -H "Content-Type: application/json" "https://localhost:9200/$idx/_settings" -d "$JSON_STRING" -XPUT echo -e "\n" else echo -e "Skipping $idx... index does not exist\n"