[PR #17978] [CLOSED] Remove redundant check for 'vminterface' in assigned_object_parent #15240

Closed
opened 2025-12-30 00:20:48 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17978
Author: @Kani999
Created: 11/11/2024
Status: Closed

Base: developHead: patch-1


📝 Commits (1)

  • e451300 Remove redundant check for 'vminterface' in assigned_object_parent

📊 Changes

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

View changed files

📝 netbox/vpn/models/l2vpn.py (+0 -2)

📄 Description

Description

This pull request removes a redundant check for the 'vminterface' model in the assigned_object_parent property of the L2VPNTermination class.

Changes

  • Removed the redundant elif obj_type.model == 'vminterface': statement

Impact

This change simplifies the assigned_object_parent property by eliminating unnecessary code, ensuring that the logic is clear and maintainable.


🔄 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/17978 **Author:** [@Kani999](https://github.com/Kani999) **Created:** 11/11/2024 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`e451300`](https://github.com/netbox-community/netbox/commit/e45130066b8cdacfaed59433c118c02be23f211b) Remove redundant check for 'vminterface' in assigned_object_parent ### 📊 Changes **1 file changed** (+0 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/vpn/models/l2vpn.py` (+0 -2) </details> ### 📄 Description ## Description This pull request removes a redundant check for the 'vminterface' model in the assigned_object_parent property of the L2VPNTermination class. ## Changes - Removed the redundant `elif obj_type.model == 'vminterface':` statement ## Impact This change simplifies the assigned_object_parent property by eliminating unnecessary code, ensuring that the logic is clear and maintainable. --- <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-30 00:20:48 +01:00
adam closed this issue 2025-12-30 00:20:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15240