Skip to content

Reports: Status is "Completed" even if the Report contains failure messages #13369

@AHo-27

Description

@AHo-27

NetBox version

v3.5.7

Python version

3.9

Steps to Reproduce

  1. Create a Report which logs a failure,
    Example report file 'report_status_test.py':
from extras.reports import Report

class TestReportStatus(Report):
    description = "test report status"

    def test_report_status(self):
        self.log_info(None, "info")
        self.log_success(None, "check passed")
        self.log_failure(None, "check failed")
  1. Add the report module to netbox
  2. Go the "Reports" and run the Report
  3. Check the Report Status/Results

Expected Behavior

If a Report contains failure messages, I would expect the Report status to be "Failed". (as it was the case with older Netbox versions)

Observed Behavior

The Report status is "Completed" instead of "Failed"
At first sight it looks to the user as if the report is successful.
grafik

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions