-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtopic: event rulesFor issues related to the Event Rules featureFor issues related to the Event Rules featuretype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Deployment Type
Self-hosted
NetBox Version
v3.7.1
Python Version
3.11
Steps to Reproduce
- Go to Operations - Event Rules - Add
- Set Conditions =
{ "and": [{"attr": "status.value", "value": "deprecated"}]} - Select Action type = Script
Expected Behavior
Conditions field stays as-is
Observed Behavior
Conditions field is rewritten as invalid JSON:
"{ \"and\": [{\"attr\": \"status.value\", \"value\": \"deprecated\"}]}"
The quoting is added with every change of the Action type.
This also happens if editing an existing event rule and changing the Action type.
Workaround
- Copy the Conditions field somewhere
- Change the Action type
- Paste the Conditions field back
Metadata
Metadata
Assignees
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtopic: event rulesFor issues related to the Event Rules featureFor issues related to the Event Rules featuretype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application