diff --git a/awx/api/views.py b/awx/api/views.py index 9e1dabc501..f430025886 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -20,6 +20,7 @@ from django.db.models import Q, Count, Sum from django.db import IntegrityError, transaction from django.shortcuts import get_object_or_404 from django.utils.datastructures import SortedDict +from django.utils.safestring import mark_safe from django.utils.timezone import now from django.views.decorators.csrf import csrf_exempt @@ -2263,7 +2264,7 @@ class UnifiedJobStdout(RetrieveAPIView): content, start, end, absolute_end = unified_job.result_stdout_raw_limited(start_line, end_line) if content_only: headers = conv.produce_headers() - body = conv.convert(content, full=False) + body = conv.convert(content, full=False) # Escapes any HTML that may be in content. data = '\n'.join([headers, body]) data = '