1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Handle split paths

This commit is contained in:
Jeremy Stretch
2020-10-08 14:01:47 -04:00
parent 0e41bc48b7
commit 75ddc63466

View File

@@ -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')