From e8891f770ced790c7195f1844cdad4367c3a276d Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 29 May 2025 14:39:41 -0700 Subject: [PATCH] #15390 add trace signal if cable terminatiions changed --- netbox/dcim/models/cables.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/netbox/dcim/models/cables.py b/netbox/dcim/models/cables.py index 73a7f1357..7608302c9 100644 --- a/netbox/dcim/models/cables.py +++ b/netbox/dcim/models/cables.py @@ -370,9 +370,7 @@ class CableTermination(ChangeLoggedModel): # figure out which cable terminations changed update_cable_termination = False update_orig_cable_termination = False - if created: - update_cable_termination = True - else: + if not created: if self._orig_cable and self._orig_cable != self.cable: update_cable_termination = True update_orig_cable_termination = True