Changeset - 34d31592b146
[Not reviewed]
default
0 1 0
Dennis Fink - 11 years ago 2014-07-15 18:06:59
dennis.fink@c3l.lu
Use server admins from config instead of ennstatus_admins
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
ennstatus/status/functions.py
Show inline comments
 
@@ -17,7 +17,7 @@ def _send_mail(server_name, status, last
 
    current_app.logger.debug('Try sending mail')
 
    try:
 
        msg = Message('[Ennstatus] %s went %s' % (server_name, status))
 
        msg.add_recipient(current_app.config['ENNSTATUS_ADMINS'][server_name])
 
        msg.add_recipient(current_app.config['SERVER_ADMINS'][server_name])
 
        msg.body = ('%s went to %s. I received the last update at %s'
 
                    % (server_name, status, last_updated))
 
        mail.send(msg)
0 comments (0 inline, 0 general)