]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
report: skip if result_server is none 346/head
authorLoic Dachary <loic-201408@dachary.org>
Fri, 24 Oct 2014 00:39:28 +0000 (17:39 -0700)
committerLoic Dachary <loic-201408@dachary.org>
Fri, 24 Oct 2014 00:39:28 +0000 (17:39 -0700)
So that it can be deactivated if running paddles is not required.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
teuthology/report.py

index 51440164897a6b5c122533a0ace118570423ac30..3e47917e7d6a83bfc45422519344102c9a8956fb 100644 (file)
@@ -430,6 +430,10 @@ def try_push_job_info(job_config, extra_info=None):
     """
     log = init_logging()
 
+    if not config.results_server:
+        log.warning('No result_server in config; not reporting results')
+        return
+
     if job_config.get('job_id') is None:
         log.warning('No job_id found; not reporting results')
         return