Change email of hosts without platforms to a warning in the logs. We don't do 
anything about this and it is just extra spam for us at this point in time. 

This will only affect admins who use the SCHEDULER.notify_email variable

Signed-off-by: Scott Zawalski <[email protected]>

--- autotest/scheduler/monitor_db_cleanup.py    2010-02-18 13:30:55.000000000 
-0800
+++ autotest/scheduler/monitor_db_cleanup.py    2010-02-18 13:30:55.000000000 
-0800
@@ -257,9 +257,8 @@
                                                 WHERE platform)
             WHERE NOT afe_hosts.invalid AND afe_hosts_labels.host_id IS 
NULL""")
         if rows:
-            subject = '%s hosts with no platform' % self._db.rowcount
-            self._send_inconsistency_message(
-                subject, [', '.join(row[0] for row in rows)])
+            logging.warn('%s hosts with no platform\n%s', self._db.rowcount,
+                         ', '.join(row[0] for row in rows))
 
 
     def _check_for_multiple_atomic_group_hosts(self):
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to