Project

General

Profile

« Previous | Next » 

Revision c5211c85

Added by David Sorber over 10 years ago

Fixing a silly bug where I renamed a function as a variable in my checker.py script.

View differences:

software/misc/checker.py
output.extend(raid_output)
# If no errors prepend "all okay" message
send_email = False
should_send = False
if not errors:
output.insert(2, 'All OKAY.\n')
# Send an email every Thursday even if status is okay
if timestamp.weekday() == 3:
send_email = True
should_send = True
else:
# Send email if there were any errors
output.insert(2, '\n'.join(errors))
send_email = True
should_send = True
# Send email
if send_email:
if should_send:
send_email('Report: {:s} - {:s}\n'.format(hostname, ts_str),
'\n'.join(output))

Also available in: Unified diff