Don't try to offload results if the results_host is localhost.  This was causing duplicate results for normal (single-host) setups.

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4105 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/scheduler/archive_results.py b/scheduler/archive_results.py
index d66ada8..ee9f5a6 100755
--- a/scheduler/archive_results.py
+++ b/scheduler/archive_results.py
@@ -8,7 +8,7 @@
     def archive_results(self, path):
         results_host = global_config.global_config.get_config_value(
                 'SCHEDULER', 'results_host', default=None)
-        if not results_host:
+        if not results_host or results_host == 'localhost':
             return
 
         logging.info('Archiving %s to %s', path, results_host)