Changeset - dcff662d5fd1
[Not reviewed]
default
0 1 0
Dennis Fink - 11 years ago 2014-07-15 19:48:56
dennis.fink@c3l.lu
Don't send mail if server status is already unknown and the new status is not
offline
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
ennstatus/status/functions.py
Show inline comments
 
@@ -60,6 +60,7 @@ def _check_server(data):
 
        current_app.logger.error('%s is set to %s' % (server_name,
 
                                 status))
 

	
 
        if data['server_status'] != 'Unknown' and status != 'Offline':
 
        _send_mail(server_name, status, last_updated)
 

	
 
        for key in ('server_status', 'tor_status'):
0 comments (0 inline, 0 general)