瀏覽代碼

Fixes #8655: Fix AttributeError when viewing cabled interfaces

jeremystretch 4 年之前
父節點
當前提交
fdbdf26afc
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4 0
      docs/release-notes/version-3.2.md
  2. 1 1
      netbox/dcim/tables/devices.py

+ 4 - 0
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
 * [#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
 * [#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
 ### Other Changes
 
 
 * [#7731](https://github.com/netbox-community/netbox/issues/7731) - Require Python 3.8 or later
 * [#7731](https://github.com/netbox-community/netbox/issues/7731) - Require Python 3.8 or later

+ 1 - 1
netbox/dcim/tables/devices.py

@@ -45,7 +45,7 @@ def get_cabletermination_row_class(record):
     if record.mark_connected:
     if record.mark_connected:
         return 'success'
         return 'success'
     elif record.cable:
     elif record.cable:
-        return record.cable.get_status_class()
+        return record.cable.get_status_color()
     return ''
     return ''