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