diff --git a/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 b/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 index 71ef9efb6f..e8d0d66105 100644 --- a/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 +++ b/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 @@ -280,7 +280,7 @@ def html_message_formatter(mode, name, build, results, master_status): content = log.getText().splitlines() # Note: can be VERY LARGE if step.getName() == 'runtask': - taskname = re.search("task=\['(.*)\.yml'\]", content).group(1) + taskname = re.search("task=\['(.*)\.yml'\]", content[0]).group(1) text.insert(0, '

Task name: %s

' % taskname) url = u'%s/steps/%s/logs/%s' % (master_status.getURLForThing(build),