From aaa3cf9baaa45ba8bd69869701936031b4e3e36f Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 18 Sep 2013 10:05:14 -0500 Subject: [PATCH] Fix logs URL on Sentry pages. --- teuthology/run_tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index fa47541bbd45f..fd147640822cc 100644 --- a/teuthology/run_tasks.py +++ b/teuthology/run_tasks.py @@ -54,10 +54,11 @@ def run_tasks(tasks, ctx): for host in targets.keys(): targets[host] = '' - job_id = getattr(ctx, 'job_id', None) + job_id = ctx.config.get('job_id') + archive_path = ctx.config.get('archive_path') extra = { 'config': config, - 'logs': get_http_log_path(ctx.archive, job_id), + 'logs': get_http_log_path(archive_path, job_id), } exc_id = sentry.get_ident(sentry.captureException( tags=tags, -- 2.39.5