Skip to content

Commit 9e78ed3

Browse files
committed
STAC-0: Some more issues
1 parent d4726e5 commit 9e78ed3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/latest/modules/en/attachments/suse-observability_logs_collector.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ EOF
270270
}
271271
EOF
272272
ts=$(jq -r '.hits.hits[-1].sort[0]' $TEMP)
273-
if [ "$ts" != "null" ]; then
273+
if [ "$ts" != "null" ] && [ "$ts" != "" ]; then
274274
from=$(($ts / 1000000))
275275
else
276276
from=""
@@ -389,7 +389,6 @@ collect_workload_observer_data
389389
if $HELM_RELEASES; then
390390
collect_helm_releases
391391
fi
392-
if $ELASTICSEARCH_LOGS; then
393392
if $ELASTICSEARCH_LOGS; then
394393
collect_pod_logs_from_elasticsearch
395394
fi

0 commit comments

Comments
 (0)