From cc7f991c0186eb667f2baa9cd71d6800d6c8d01d Mon Sep 17 00:00:00 2001 From: bookshark13 Date: Thu, 15 Aug 2024 17:25:31 +0000 Subject: [PATCH] Update nb_inventory.py Fixes issue-#1300 allows api_endpoint to be a variable and string --- plugins/inventory/nb_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inventory/nb_inventory.py b/plugins/inventory/nb_inventory.py index 03444b6b..3ce0e321 100644 --- a/plugins/inventory/nb_inventory.py +++ b/plugins/inventory/nb_inventory.py @@ -1594,7 +1594,7 @@ def fetch_api_docs(self): except Exception: cached_api_version = None cache = None - + self.api_endpoint = self.templar.template( self.get_option("api_endpoint"), fail_on_undefined=False) status = self._fetch_information(self.api_endpoint + "/api/status") netbox_api_version = ".".join(status["netbox-version"].split(".")[:2])