DoesNotExist exception triggered when deleting a device with one or more secrets #3927
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Environment
Steps to Reproduce
Expected Behavior
The device and its associated secrets should be deleted, and the change log should be updated to reflect the deletion of each object.
Observed Behavior
The device and secrets are deleted, however an exception is raised while attempting to record the secrets deletion in the change log:
This is due to the
__str__()
method on Secret attempting to resolve the parent Device, which no longer exists at the point of execution.The text was updated successfully, but these errors were encountered: