Skip to content

Deletion of devices is broken due to an old custom object field #433

@alekc

Description

@alekc

Plugin Version

0.4.6

NetBox Version

4.5.4-Docker-4.0.1

Python Version

3.12.3

Steps to Reproduce

Not sure regarding the exact steps, but more or less here how I have ended up

  • Create a custom object type with several fields (one of which is device)
  • Create a custom object instance
  • Delete a field from custom object type
  • Attempt to delete a device

Expected Behavior

Device is deleted

Observed Behavior

{'error': 'column custom_objects_1.ports does not exist\nLINE 1: ...cts_1"."last_updated", "custom_objects_1"."name", "custom_ob...\n                                                             ^\nHINT:  Perhaps you meant to reference the column "custom_objects_1.port".', 'exception': 'ProgrammingError', 'netbox_version': '4.5.4-Docker-4.0.1', 'python_version': '3.12.3'}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions