Skip to content

Commit c76986f

Browse files
authored
Merge pull request #1336 from ihumster/1335_api_status_page_not_fouond
fix issue 1335
2 parents 432b8fe + 72ecbb8 commit c76986f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- fix call /api/status/ instead /api/status in nb_inventory plugin. (https://github.com/netbox-community/ansible_modules/issues/1335).

plugins/inventory/nb_inventory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,7 @@ def fetch_api_docs(self):
16071607
cached_api_version = None
16081608
cache = None
16091609

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

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

0 commit comments

Comments
 (0)