[PR #6461] [CLOSED] Fixed #5611 Script log message should be serialized as 'str' instance. #13130

Closed
opened 2025-12-29 22:25:34 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/6461
Author: @TakuyaSuenaga
Created: 5/21/2021
Status: Closed

Base: developHead: develop


📝 Commits (1)

  • 7a2c636 Fixed #5611 Script log message should be serialized as 'str' instance.

📊 Changes

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

View changed files

📝 netbox/extras/api/serializers.py (+1 -1)

📄 Description

Fixes: #5611

The script execution never finishes when the model instance is passed to Script.log_info().
The cause is that the serialized data cannot be saved at JobResult model.
So I fixed script log message will be serialized as 'str' instance for can be saved.


🔄 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/6461 **Author:** [@TakuyaSuenaga](https://github.com/TakuyaSuenaga) **Created:** 5/21/2021 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (1) - [`7a2c636`](https://github.com/netbox-community/netbox/commit/7a2c636df2d74d72478daa9261d3112d73d975ad) Fixed #5611 Script log message should be serialized as 'str' instance. ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/api/serializers.py` (+1 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #5611 <!-- Please include a summary of the proposed changes below. --> The script execution never finishes when the model instance is passed to Script.log_info(). The cause is that the serialized data cannot be saved at JobResult model. So I fixed script log message will be serialized as 'str' instance for can be saved. --- <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 22:25:34 +01:00
adam closed this issue 2025-12-29 22:25:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13130