Skip to content

Commit

Permalink
special check for opensearch in service disable
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Sep 20, 2023
1 parent 5dcfd70 commit 52872ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/bin/service_check_passthrough.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ if [[ -z "$DISABLED" ]] && [[ -n "$SERVICE" ]]; then
[[ "${!LOCAL_VARNAME}" == "n" ]] ); then
DISABLED=1
fi
# kinda hacky but check a special case for OpenSearch
if [[ "$SERVICE" == "opensearch" ]] && [[ "${OPENSEARCH_PRIMARY:-opensearch-local}" != "opensearch-local" ]]; then
DISABLED=1
fi
fi

# if port and/or format not specified via command line, make some inferences based on service
Expand Down

0 comments on commit 52872ee

Please sign in to comment.