-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
severity: 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 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.0
Python Version
3.11
Steps to Reproduce
- Create webhook: Name = Test, URL = http://127.0.0.1:9000 (doesn't matter in this case, it won't be triggered but is required to configure event rule)
- Go to Event rules - Add:
- Name = Test
- Content types = Circuit
- select Updates
- set Conditions:
{
"attr": "status.value",
"value": "active"
}
- Action type = Webhook
- Webhook = Test
- Create
Expected Behavior
Event rule is created
Observed Behavior
Error is shown about the condition:
Ruleset must have exactly one logical operator (found 2)
The examples in https://docs.netbox.dev/en/stable/reference/conditions/ look the same: simple JSON object with attributes attr and value.
Metadata
Metadata
Assignees
Labels
severity: 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 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