Skip to content

Event Rule on MACAddress - Custom Script fail with error #20242

@stefanoparis-mgh

Description

@stefanoparis-mgh

Deployment Type

Self-hosted

NetBox Version

v4.4.0

Python Version

3.11

Steps to Reproduce

  1. Define simple custom script that log a row (script attached)
  2. Create Event Rule on MACAddress Create/Update that execute previously created script
  3. Edit MACAddress

Script can be executed manually without error. In version 4.3.7 script worked correctly

Test.py

Expected Behavior

Script get executed with a simple log row

Observed Behavior

Error raised:
AttributeError("'NoneType' object has no attribute 'id'")

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions