]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix logs URL on Sentry pages.
authorZack Cerza <zack@cerza.org>
Wed, 18 Sep 2013 15:05:14 +0000 (10:05 -0500)
committerZack Cerza <zack@cerza.org>
Wed, 18 Sep 2013 15:30:26 +0000 (10:30 -0500)
teuthology/run_tasks.py

index fa47541bbd45f914f745dd0ad422bc26aeee77c9..fd147640822cc9c5503c022fde6dc5b90c3320b9 100644 (file)
@@ -54,10 +54,11 @@ def run_tasks(tasks, ctx):
                 for host in targets.keys():
                     targets[host] = '<redacted>'
 
-            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,