[puppet] Change digest email send time by 1 hour for daylight savings.

(imported from commit 8ac1747f15e10b850f73ce28ea4579bee62ba1a4)
This commit is contained in:
Jessica McKellar 2014-03-12 12:04:26 -04:00 committed by Leo Franchi
parent cc03d58203
commit ee04f7b3e8

View file

@ -50,7 +50,7 @@ now_struct = time.gmtime(now)
# While we are sending digest emails, at 11am each weekday, the mail queues can # While we are sending digest emails, at 11am each weekday, the mail queues can
# get backed up; don't alert on those. # get backed up; don't alert on those.
if not set(warn_queues) - set(("missedmessage_emails", "digest_emails")) and \ if not set(warn_queues) - set(("missedmessage_emails", "digest_emails")) and \
now_struct.tm_hour == 16 and now_struct.tm_min < 25: now_struct.tm_hour == 15 and now_struct.tm_min < 25:
status = 0 status = 0
print("%s|%s|%s|processing digests, not alerting on elevated mail queues" % ( print("%s|%s|%s|processing digests, not alerting on elevated mail queues" % (
now, status, states[status])) now, status, states[status]))