Просмотр исходного кода

Fixes #8003: Fix cable tracing across bridged interfaces with no cable

jeremystretch 4 лет назад
Родитель
Сommit
dda11ec69e
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      docs/release-notes/version-3.1.md
  2. 1 1
      netbox/dcim/models/device_components.py

+ 1 - 0
docs/release-notes/version-3.1.md

@@ -7,6 +7,7 @@
 * [#7990](https://github.com/netbox-community/netbox/issues/7990) - Fix `title` display on contact detail view
 * [#7996](https://github.com/netbox-community/netbox/issues/7996) - Show WWN field in interface creation form
 * [#8001](https://github.com/netbox-community/netbox/issues/8001) - Correct verbose name for wireless LAN group model
+* [#8003](https://github.com/netbox-community/netbox/issues/8003) - Fix cable tracing across bridged interfaces with no cable
 * [#8005](https://github.com/netbox-community/netbox/issues/8005) - Fix contact email display
 * [#8010](https://github.com/netbox-community/netbox/issues/8010) - Allow filtering devices by multiple serial numbers
 

+ 1 - 1
netbox/dcim/models/device_components.py

@@ -193,7 +193,7 @@ class PathEndpoint(models.Model):
         while origin is not None:
 
             if origin._path is None:
-                return path
+                break
 
             path.extend([origin, *origin._path.get_path()])
             while (len(path) + 1) % 3: