[PR #15173] [MERGED] Fixes #14952: Update existing AutoSyncRecord when changing the data file of an auto-synced object #14538

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15173
Author: @jeremystretch
Created: 2/16/2024
Status: Merged
Merged: 2/16/2024
Merged by: @jeremystretch

Base: developHead: 14952-fix-autosyncrecord


📝 Commits (1)

  • d34098d Fixes #14952: Update existing AutoSyncRecord when changing the data file of an auto-synced object

📊 Changes

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

View changed files

📝 netbox/netbox/models/features.py (+3 -3)

📄 Description

Fixes: #14952

Change get_or_create() to update_or_create() to ensure we update the existing AutoSyncRecord, if any.


🔄 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/15173 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 2/16/2024 **Status:** ✅ Merged **Merged:** 2/16/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `14952-fix-autosyncrecord` --- ### 📝 Commits (1) - [`d34098d`](https://github.com/netbox-community/netbox/commit/d34098ddc55d373510ca84a11213633eed2e74e6) Fixes #14952: Update existing AutoSyncRecord when changing the data file of an auto-synced object ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/models/features.py` (+3 -3) </details> ### 📄 Description ### Fixes: #14952 Change `get_or_create()` to `update_or_create()` to ensure we update the existing AutoSyncRecord, if any. --- <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:25:04 +01:00
adam closed this issue 2025-12-29 23:25:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14538