[PR #15063] [CLOSED] Enable Event Rules to process and send data to Scripts using Event Data #14514

Closed
opened 2025-12-29 23:24:55 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15063
Author: @renatoalmeidaoliveira
Created: 2/6/2024
Status: Closed

Base: developHead: develop


📝 Commits (4)

  • 4de5046 Render Action Data as Jinja2
  • 1ed0980 Fix json string sent by render_script_data, and setups run_script to process the input data inside the script form
  • 17ad376 Lint PEP8
  • ae828ad Join changes in process_event_rule and limit to process and send action data to Script

📊 Changes

1 file changed (+18 additions, -1 deletions)

View changed files

📝 netbox/extras/events.py (+18 -1)

📄 Description

Fixes: https://github.com/netbox-community/netbox/issues/14884

Passes Event Rule a jinja2 processed action_data to script execution as its input.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/15063 **Author:** [@renatoalmeidaoliveira](https://github.com/renatoalmeidaoliveira) **Created:** 2/6/2024 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (4) - [`4de5046`](https://github.com/netbox-community/netbox/commit/4de5046109fafa20fd6173128f9ed5aeebbc5ee6) Render Action Data as Jinja2 - [`1ed0980`](https://github.com/netbox-community/netbox/commit/1ed09806327fac07d09d8b6da2426ae4f8987e80) Fix json string sent by render_script_data, and setups run_script to process the input data inside the script form - [`17ad376`](https://github.com/netbox-community/netbox/commit/17ad376fce7b453b523c903d61af2b3e1d26b475) Lint PEP8 - [`ae828ad`](https://github.com/netbox-community/netbox/commit/ae828adc7a58a54a3373d7881eac29da932bbea5) Join changes in process_event_rule and limit to process and send action data to Script ### 📊 Changes **1 file changed** (+18 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/events.py` (+18 -1) </details> ### 📄 Description Fixes: https://github.com/netbox-community/netbox/issues/14884 Passes Event Rule a jinja2 processed `action_data` to script execution as its input. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:24:55 +01:00
adam closed this issue 2025-12-29 23:24:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14514