Skip to content

Commit 3f2ea2f

Browse files
committed
[FIX] Correct handling of unavailable API endpoint in deploy_opensearch_content.sh
1 parent c9965d0 commit 3f2ea2f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# SAS Viya Monitoring for Kubernetes
2+
## unreleased
3+
* **Logging**
4+
* [FIX] Corrected handling of unavailable API endpoint in deploy_opensearch_content.sh
5+
26

37
## Version 1.2.41 (19AUG2025)
48
* **Metrics**

logging/bin/deploy_opensearch_content.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ log_info "Loading Content into OpenSearch"
2525
# temp file used to capture command output
2626
tmpfile=$TMP_DIR/output.txt
2727

28-
set -e
29-
3028
# check for pre-reqs
3129

3230
# Confirm namespace exists
@@ -169,6 +167,8 @@ function add_ism_template {
169167
fi
170168
}
171169

170+
set -e
171+
172172
LOG_RETENTION_PERIOD="${LOG_RETENTION_PERIOD:-3}"
173173
set_retention_period viya_logs_idxmgmt_policy LOG_RETENTION_PERIOD
174174
add_ism_template "viya_logs_idxmgmt_policy" "viya_logs-*" 100

0 commit comments

Comments
 (0)