From fdbdf26afcfad155d4d3ba61470210f4bdf9ef3e Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Wed, 16 Feb 2022 08:23:57 -0500 Subject: [PATCH] Fixes #8655: Fix AttributeError when viewing cabled interfaces --- docs/release-notes/version-3.2.md | 4 ++++ netbox/dcim/tables/devices.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/version-3.2.md b/docs/release-notes/version-3.2.md index 557550cc4..e4d8474e4 100644 --- a/docs/release-notes/version-3.2.md +++ b/docs/release-notes/version-3.2.md @@ -144,6 +144,10 @@ Where it is desired to limit the range of available VLANs within a group, users * [#8572](https://github.com/netbox-community/netbox/issues/8572) - Add a `pre_run()` method for reports * [#8649](https://github.com/netbox-community/netbox/issues/8649) - Enable customization of configuration module using `NETBOX_CONFIGURATION` environment variable +### Bug Fixes (From Beta) + +* [#8655](https://github.com/netbox-community/netbox/issues/8655) - Fix AttributeError when viewing cabled interfaces + ### Other Changes * [#7731](https://github.com/netbox-community/netbox/issues/7731) - Require Python 3.8 or later diff --git a/netbox/dcim/tables/devices.py b/netbox/dcim/tables/devices.py index e6db5db2d..a24c48e68 100644 --- a/netbox/dcim/tables/devices.py +++ b/netbox/dcim/tables/devices.py @@ -45,7 +45,7 @@ def get_cabletermination_row_class(record): if record.mark_connected: return 'success' elif record.cable: - return record.cable.get_status_class() + return record.cable.get_status_color() return ''