pynetbox icon indicating copy to clipboard operation
pynetbox copied to clipboard

API token is passed to retrieve NetBox version

Open Kani999 opened this issue 5 months ago • 4 comments

Fixes: #640

  • Updated the version property in pynetbox/core/api.py to pass the API token when calling get_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

Kani999 avatar Aug 30 '24 10:08 Kani999