From 7772657b4bc9342a2800560f4919fbff0e4d03d2 Mon Sep 17 00:00:00 2001 From: Wes Date: Tue, 7 Nov 2023 21:06:35 +0000 Subject: [PATCH] Remove RETURN_CODE --- .../tools/sbin/so-elasticsearch-pipelines | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/salt/elasticsearch/tools/sbin/so-elasticsearch-pipelines b/salt/elasticsearch/tools/sbin/so-elasticsearch-pipelines index 4afc9bd4d..fa0e57fc4 100755 --- a/salt/elasticsearch/tools/sbin/so-elasticsearch-pipelines +++ b/salt/elasticsearch/tools/sbin/so-elasticsearch-pipelines @@ -6,7 +6,6 @@ . /usr/sbin/so-common -RETURN_CODE=0 ELASTICSEARCH_HOST=$1 ELASTICSEARCH_PORT=9200 @@ -30,11 +29,4 @@ if [ ! -f /opt/so/state/espipelines.txt ]; then cd - >/dev/null - if [[ "$RETURN_CODE" != "1" ]]; then - touch /opt/so/state/espipelines.txt - else - echo "Errors were detected. This script will run again during the next application of the state." - fi -else - exit $RETURN_CODE -fi + touch /opt/so/state/espipelines.txt