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 <scottz@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4258 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/scheduler/monitor_db_cleanup.py b/scheduler/monitor_db_cleanup.py
index 74ad604..60b02f7 100644
--- a/scheduler/monitor_db_cleanup.py
+++ b/scheduler/monitor_db_cleanup.py
@@ -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):