Merge branch 'master' of github.com:penguin86/selfhost-utils

This commit is contained in:
Daniele Verducci 2023-04-25 09:47:02 +02:00
commit 7d624f7a33

View File

@ -112,7 +112,7 @@ class Main:
self.executeAlarmCommand(s, error) self.executeAlarmCommand(s, error)
elif status.getAlarmTriggeredTimestamp(section) is not None: elif status.getAlarmTriggeredTimestamp(section) is not None:
logging.info('Alarm ceased for {}: OK!'.format(section)) 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) self.sendAlmEndMail(s)
status.unsetAlarm(section) status.unsetAlarm(section)