Merge pull request #5732 from candlerb/candlerb/sample-report-connection-status

Fix sample report in documentation
This commit is contained in:
Jeremy Stretch 2021-02-04 11:47:18 -05:00 committed by GitHub
commit e155acbbd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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