This commit is contained in:
Daniele Verducci
2023-04-20 11:01:37 +02:00
committed by GitHub
parent 52d195be09
commit 5e2e5ba080

View File

@@ -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)