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