Skip to content

Conversation

adp
Copy link

@adp adp commented Oct 1, 2025

Related Issue

#1469

New Behavior

The variable that is being used to identify the api endpoint can now be used in the code path for older netbox servers so the inventory plugin shouldn't crash when attempting to communicate with old servers.

...

Contrast to Current Behavior

When using old netbox servers we should be able to retrieve inventory information rather than crashing with errors about not being able to access variables.

...

Discussion: Benefits and Drawbacks

This is only relevant to old old servers but we currently have a broken code path in the current version of the plugin.

One alternative in my mind would be to remove all of the checks for version lt 3.5.0, update the documentation to indicate that it's really not supported and probably create a new check for the old api version/path that just returns an error saying "upgrade to a newer version of netbox"

...

Changes to the Documentation

None - stopping a bug from triggering.

Proposed Release Note Entry

Fix of logic when interacting with old netbox servers.

...

Double Check

  • I have read the comments and followed the CONTRIBUTING.md.
  • I have explained my PR according to the information in the comments or in a linked issue.
  • My PR targets the devel branch.

@adp adp force-pushed the fix_1469_old_apis branch from 6a0c252 to 5812a53 Compare October 1, 2025 08:31
@sc68cal sc68cal merged commit 90aea32 into netbox-community:devel Oct 6, 2025
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants