]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
supervisor: Fix an AttributeError in reimage() sentry-ae 1877/head
authorZack Cerza <zack@redhat.com>
Mon, 31 Jul 2023 23:31:43 +0000 (17:31 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 31 Jul 2023 23:31:43 +0000 (17:31 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/dispatcher/supervisor.py

index 98bbb3f63a44cf17d4e4f2e9ef0aa15672bfad1a..4e0172ce3a66b5e59815ae5506d6a5463e967d6d 100644 (file)
@@ -233,7 +233,7 @@ def reimage(job_config):
             ctx.config,
             dict(status='dead', failure_reason='Error reimaging machines: ' + str(e))
         )
-        ctx.summary['sentry_event'] = sentry.report_error(job_config, e)
+        ctx.summary = {'sentry_event': sentry.report_error(job_config, e)}
         nuke.nuke(ctx, True)
         # Machine that fails to reimage after 10 times will be marked down
         check_for_reimage_failures_and_mark_down(targets)