File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -228,9 +228,8 @@ def main(_logger=None):
228
228
logger .debug (str (ex ))
229
229
logger .error ("Could not update notification: %s." % ass .notification .id )
230
230
231
- if Config ["email_notify" ]:
232
- _days = Days .less_than (3 ) if ass .is_self_schedule else Days
233
- for day in _days :
231
+ if Config ["email_notify" ] and not ass .is_self_schedule :
232
+ for day in Days :
234
233
future_schedules = None
235
234
future = datetime .now () + timedelta (days = day .value )
236
235
future_date = "%4d-%.2d-%.2dT22:00" % (
@@ -250,7 +249,7 @@ def main(_logger=None):
250
249
host_list = set (current_hosts ) - set (future_hosts )
251
250
if host_list and future > current_schedules [0 ].end :
252
251
if not getattr (ass .notification , day .name .lower ()):
253
- logger .info ("=============== Additional Message " )
252
+ logger .info ("=============== Expiration Notification " )
254
253
cloud = ass .cloud .name
255
254
create_message (
256
255
cloud ,
You can’t perform that action at this time.
0 commit comments