From: Zack Cerza Date: Wed, 18 Sep 2013 15:05:14 +0000 (-0500) Subject: Fix logs URL on Sentry pages. X-Git-Tag: 1.1.0~1869^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F97%2Fhead;p=teuthology.git Fix logs URL on Sentry pages. --- diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index fa47541b..fd147640 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,