-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Labels
netboxseverity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Milestone
Description
NetBox Edition
NetBox Community
NetBox Version
v4.4.5
Python Version
3.12
Steps to Reproduce
- Create & upload a custom script with the following content:
from extras.scripts import Script
from tenancy.models import Tenant
class TestSnapshots(Script):
def run(self, data: dict, commit: bool) -> str:
tenant = Tenant.objects.get(name="tenant a")
tenant.snapshot()
tenant.description = "updated from event rule"
tenant.full_clean()
tenant.save()- Create Tenant with name
tenant a. Leave description empty. - Create EventRule that will run script. Exact values don't matter, for example:
- object types:
Contact group - event types:
Create - action type:
Script - script: script uploaded above
- object types:
- Create Tenant group with any values
- Check Changelog for Tenant
tenant a.
Expected Behavior
An update changelog entry for tenant a is created that indicates change of tenant description.
Observed Behavior
No changelog entry is created.
Metadata
Metadata
Assignees
Labels
netboxseverity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application