Explorar el Código

Handle split paths

Jeremy Stretch hace 5 años
padre
commit
75ddc63466
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      netbox/dcim/api/views.py

+ 3 - 0
netbox/dcim/api/views.py

@@ -58,6 +58,9 @@ class PathEndpointMixin(object):
         path = []
 
         for near_end, cable, far_end in obj.trace():
+            if near_end is None:
+                # Split paths
+                break
 
             # Serialize each object
             serializer_a = get_serializer_for_model(near_end, prefix='Nested')