Fix cluster health API call

This commit is contained in:
Jason Tedor 2016-03-23 17:06:45 -04:00
parent ad28fb9ec0
commit 04e6e6c3e0
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ wait_for_elasticsearch_status() {
curl -sS "http://localhost:9200/_cluster/health?wait_for_status=$desiredStatus&timeout=60s&pretty"
else
echo "Trying to connect to elasticsearch and wait for expected status $desiredStatus for index $index"
curl -sS "http://localhost:9200/_cluster/$index/health?wait_for_status=$desiredStatus&timeout=60s&pretty"
curl -sS "http://localhost:9200/_cluster/health/$index?wait_for_status=$desiredStatus&timeout=60s&pretty"
fi
if [ $? -eq 0 ]; then
echo "Connected"