Commit 38e94023 authored by Hardik Juneja's avatar Hardik Juneja

stack/resilient: fix check if exporter failed promise

parent 1437191c
...@@ -54,7 +54,7 @@ template = inline: ...@@ -54,7 +54,7 @@ template = inline:
EXPORTER_FEED="${notifier-exporter:log-file}" EXPORTER_FEED="${notifier-exporter:log-file}"
FAILURE_PATTERN="FAILURE" FAILURE_PATTERN="FAILURE"
if [ -s "$EXPORTER_FEED" ]; then if [ -s "$EXPORTER_FEED" ]; then
tail -n 1 $EXPORTER_FEED | grep -vq FAILURE_PATTERN tail -n 1 $EXPORTER_FEED | grep -vq $FAILURE_PATTERN
fi fi
rendered = ${basedirectory:promises}/exporter-status rendered = ${basedirectory:promises}/exporter-status
...@@ -83,4 +83,4 @@ recipe = slapos.cookbook:publish-early ...@@ -83,4 +83,4 @@ recipe = slapos.cookbook:publish-early
[slap-parameter] [slap-parameter]
# In cron.d format (i.e things like */15 * * * * are accepted). # In cron.d format (i.e things like */15 * * * * are accepted).
resiliency-backup-periodicity = resiliency-backup-periodicity =
notify = notify =
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment