fix_exclusive_notification: (#7769)
This commit removes the returns that were creating the bug
thiagoftsm committed
Feb 11, 2020 at 17:53 UTC
11aa4acfa9f11e0346430e48b2721b76bf614141
1 file changed
-2
health/notifications/alarm-notify.sh.in
-2
@@ -435,7 +435,6 @@ filter_recipient_by_criticality() {
435
if [ -f "${NETDATA_CACHE_DIR}/alarm-notify/${method}/${r}/${alarm_id}" ]; then
436
# we do not remove the file, so that he will get future notifications of this alarm
437
debug "SEVERITY FILTERING for ${x} VIA ${method}: ALLOW: recipient has been notified for this alarm in the past (will still receive next status change)"
438
- return 0
438
fi
439
;;
440
@@ -444,7 +443,6 @@ filter_recipient_by_criticality() {
443
# remove the file, so that he will only receive notifications for CRITICAL states for this alarm
444
rm "${NETDATA_CACHE_DIR}/alarm-notify/${method}/${r}/${alarm_id}"
445
debug "SEVERITY FILTERING for ${x} VIA ${method}: ALLOW: recipient has been notified for this alarm (will only receive CRITICAL notifications from now on)"
447
- return 0
446
fi
447
;;
448
esac