pynetbox
pynetbox copied to clipboard
API token is passed to retrieve NetBox version
Fixes: #640
- Updated the
versionproperty inpynetbox/core/api.pyto pass the API token when callingget_version. - No problem raised even if the token is None
- This change addresses the issue where
nb.versionreturns an empty string when using an OIDC proxy, due to unauthorized requests being redirected to the login page.
Closes #640