Skip to content

Commit

Permalink
Merge pull request #1336 from ihumster/1335_api_status_page_not_fouond
Browse files Browse the repository at this point in the history
fix issue 1335
  • Loading branch information
sc68cal authored Oct 15, 2024
2 parents 432b8fe + 72ecbb8 commit c76986f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/1335-api-status-page-not-found.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- fix call /api/status/ instead /api/status in nb_inventory plugin. (https://github.com/netbox-community/ansible_modules/issues/1335).
2 changes: 1 addition & 1 deletion plugins/inventory/nb_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ def fetch_api_docs(self):
cached_api_version = None
cache = None

status = self._fetch_information(self.api_endpoint + "/api/status")
status = self._fetch_information(self.api_endpoint + "/api/status/")
netbox_api_version = ".".join(status["netbox-version"].split(".")[:2])

if version.parse(netbox_api_version) >= version.parse("3.5.0"):
Expand Down

0 comments on commit c76986f

Please sign in to comment.