Deleting a circuit with a termination causes an exception #2639

Closed
opened 2025-12-29 18:20:45 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (May 29, 2019).

Environment

  • Python version: 3.5.2
  • NetBox version: 2.5.13

Steps to Reproduce

  1. Create a circuit and at least one termination on it
  2. Delete the circuit

Expected Behavior

The circuit and its termination(s) should be deleted successfully.

Observed Behavior

The circuit and termination(s) are deleted, however the call to log the change when deleting the circuit termination raises an ObjectNotFound exception. This is because the parent circuit (which no longer exists) is being passed as related_object on the ObjectChange.

Originally created by @jeremystretch on GitHub (May 29, 2019). ### Environment * Python version: 3.5.2 * NetBox version: 2.5.13 ### Steps to Reproduce 1. Create a circuit and at least one termination on it 2. Delete the circuit ### Expected Behavior The circuit and its termination(s) should be deleted successfully. ### Observed Behavior The circuit and termination(s) are deleted, however the call to log the change when deleting the circuit termination raises an ObjectNotFound exception. This is because the parent circuit (which no longer exists) is being passed as `related_object` on the ObjectChange.
adam added the type: bugstatus: accepted labels 2025-12-29 18:20:45 +01:00
adam closed this issue 2025-12-29 18:20:46 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2639