Răsfoiți Sursa

Fix sample report in documentation

Raised in #5729
Brian Candler 5 ani în urmă
părinte
comite
f28474d86e
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      docs/additional-features/reports.md

+ 1 - 1
docs/additional-features/reports.md

@@ -66,7 +66,7 @@ class DeviceConnectionsReport(Report):
             for power_port in PowerPort.objects.filter(device=device):
             for power_port in PowerPort.objects.filter(device=device):
                 if power_port.connected_endpoint is not None:
                 if power_port.connected_endpoint is not None:
                     connected_ports += 1
                     connected_ports += 1
-                    if not power_port.connection_status:
+                    if not power_port.path.is_active:
                         self.log_warning(
                         self.log_warning(
                             device,
                             device,
                             "Power connection for {} marked as planned".format(power_port.name)
                             "Power connection for {} marked as planned".format(power_port.name)