repair email

This commit is contained in:
Fredrik Eriksson 2024-07-13 21:13:21 +02:00
parent 18920014fe
commit 578615dbef
Signed by: feffe
GPG Key ID: E6B5580B853D322B

View File

@ -27,7 +27,6 @@ def _send_email(subject, message, config):
smtp.send_message(mail) smtp.send_message(mail)
def success(name, failures, config): def success(name, failures, config):
cur_status = _get_status(name)
nr_failures = len(failures) nr_failures = len(failures)
hostname = socket.getfqdn() hostname = socket.getfqdn()
subject=f'{hostname} - {name}: recovery' subject=f'{hostname} - {name}: recovery'
@ -38,7 +37,6 @@ def success(name, failures, config):
def failure(name, failures, config): def failure(name, failures, config):
cur_status = _get_status(name)
hostname = socket.getfqdn() hostname = socket.getfqdn()
latest_inv_id = failures[-1]['invocation_id'] latest_inv_id = failures[-1]['invocation_id']
nr_failures = len(failures) nr_failures = len(failures)