From 5e2e5ba08066ba2c96c7f98415719ca75153337c Mon Sep 17 00:00:00 2001 From: Daniele Verducci Date: Thu, 20 Apr 2023 11:01:37 +0200 Subject: [PATCH] Fix --- healthcheck/healthcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthcheck/healthcheck.py b/healthcheck/healthcheck.py index 5573720..dd2d2f2 100755 --- a/healthcheck/healthcheck.py +++ b/healthcheck/healthcheck.py @@ -112,7 +112,7 @@ class Main: self.executeAlarmCommand(s, error) elif status.getAlarmTriggeredTimestamp(section) is not None: logging.info('Alarm ceased for {}: OK!'.format(section)) - if s.notify_alarm_end: + if s.notify_alarm_end and not dryRun and s.mailto: self.sendAlmEndMail(s) status.unsetAlarm(section)