From 975d094703f7d4459d982ec27c317eda294596bb Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 23 Oct 2014 17:39:28 -0700 Subject: [PATCH] report: skip if result_server is none So that it can be deactivated if running paddles is not required. Signed-off-by: Loic Dachary --- teuthology/report.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teuthology/report.py b/teuthology/report.py index 5144016489..3e47917e7d 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 -- 2.39.5