diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 09c7ca91..72d7e9bd 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -41,7 +41,7 @@ jobs: - name: Check Wazuh indexer nodes run: | nodes="`curl -XGET "https://0.0.0.0:9200/_cat/nodes" -u admin:SecretPassword -k | grep -E "indexer" | wc -l`" - if [[ $nodes -eq 2 ]]; then + if [[ $nodes -eq 1 ]]; then echo "Cantidad de nodos: ${nodes}" else echo "Cantidad de nodos: ${nodes}" @@ -73,7 +73,13 @@ jobs: - name: Check Wazuh indexer nodes run: | - curl -XGET "https://0.0.0.0:9200/_cat/nodes" -u admin:SecretPassword -k | wc -l + nodes="`curl -XGET "https://0.0.0.0:9200/_cat/nodes" -u admin:SecretPassword -k | grep -E "indexer" | wc -l`" + if [[ $nodes -eq 1 ]]; then + echo "Cantidad de nodos: ${nodes}" + else + echo "Cantidad de nodos: ${nodes}" + exit 1 + fi - name: Check Wazuh manager start run: |