From 73c8b33bcd34d0550b269dd6e2a36df0dc46e758 Mon Sep 17 00:00:00 2001 From: Victor Carlos Erenu Date: Wed, 24 Dec 2025 00:20:02 +0700 Subject: [PATCH] Fix first attempts of cluster initialization --- .github/workflows/push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 1dbf54b5..43b1c876 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -149,7 +149,7 @@ jobs: run: | for i in {1..10}; do echo "Checking Wazuh indexer health (Attempt $i/10)" - RESPONSE=$(curl -XGET "https://0.0.0.0:9200/_cluster/health?pretty" -u admin:admin -k -s) + RESPONSE=$(curl -XGET "https://0.0.0.0:9200/_cluster/health?pretty" -u admin:admin -k -s --retry 2 || true) if echo "$RESPONSE" | grep -qE "green|yellow"; then echo "Cluster Online" @@ -351,7 +351,7 @@ jobs: run: | for i in {1..10}; do echo "Checking Wazuh indexer health (Attempt $i/10)" - RESPONSE=$(curl -XGET "https://0.0.0.0:9200/_cluster/health?pretty" -u admin:admin -k -s) + RESPONSE=$(curl -XGET "https://0.0.0.0:9200/_cluster/health?pretty" -u admin:admin -k -s --retry 2 || true) if echo "$RESPONSE" | grep -qE "green|yellow"; then echo "Cluster Online"