From: Loic Dachary Date: Fri, 24 Oct 2014 00:39:28 +0000 (-0700) Subject: report: skip if result_server is none X-Git-Tag: 1.1.0~1055^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F346%2Fhead;p=teuthology.git report: skip if result_server is none So that it can be deactivated if running paddles is not required. Signed-off-by: Loic Dachary --- diff --git a/teuthology/report.py b/teuthology/report.py index 514401648..3e47917e7 100644 --- a/teuthology/report.py +++ b/teuthology/report.py @@ -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