repair email
This commit is contained in:
parent
18920014fe
commit
578615dbef
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user