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)