diff --git a/netbox/extras/views.py b/netbox/extras/views.py index ead25e576..2a55135e5 100644 --- a/netbox/extras/views.py +++ b/netbox/extras/views.py @@ -1204,6 +1204,7 @@ class ScriptResultView(TableMixin, generic.ObjectView): if job.completed: table_logs, table_tests = self.get_table(job, request, bulk_actions=False) + breakpoint() context = { 'script': job.object, 'job': job, diff --git a/netbox/templates/extras/htmx/script_result.html b/netbox/templates/extras/htmx/script_result.html index 438adc460..965e2d614 100644 --- a/netbox/templates/extras/htmx/script_result.html +++ b/netbox/templates/extras/htmx/script_result.html @@ -19,12 +19,14 @@

{% if job.completed %} + {% if table.logs and not table_tests %}
{% trans "Log" %}
{% include 'htmx/table.html' with table=table_logs %}
+ {% endif %} {# Script output. Legacy reports will not have this. #} {% if 'output' in job.data %}