From 38e106c22c3b7b3da6306df5c24d5abbd86b1ba2 Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 8 Dec 2022 17:51:45 -0800 Subject: [PATCH] 10201 fix cable terminations edit --- netbox/dcim/models/cables.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netbox/dcim/models/cables.py b/netbox/dcim/models/cables.py index d00cfd4e6..952d7c770 100644 --- a/netbox/dcim/models/cables.py +++ b/netbox/dcim/models/cables.py @@ -465,6 +465,7 @@ class CablePath(models.Model): if not terminations: return None + terminations = [t for t in terminations if t.link is None] # Ensure all originating terminations are attached to the same link if len(terminations) > 1: assert all(t.link == terminations[0].link for t in terminations[1:])