From 578615dbeff60306d64e91994cee253963a57945 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Sat, 13 Jul 2024 21:13:21 +0200 Subject: [PATCH] repair email --- sysalert/email.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sysalert/email.py b/sysalert/email.py index ec22478..2790670 100644 --- a/sysalert/email.py +++ b/sysalert/email.py @@ -27,7 +27,6 @@ def _send_email(subject, message, config): smtp.send_message(mail) def success(name, failures, config): - cur_status = _get_status(name) nr_failures = len(failures) hostname = socket.getfqdn() subject=f'{hostname} - {name}: recovery' @@ -38,7 +37,6 @@ def success(name, failures, config): def failure(name, failures, config): - cur_status = _get_status(name) hostname = socket.getfqdn() latest_inv_id = failures[-1]['invocation_id'] nr_failures = len(failures)