We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7030c5a commit db81041Copy full SHA for db81041
plugins/inventory/nb_inventory.py
@@ -1648,10 +1648,10 @@ def fetch_api_docs(self):
1648
pass
1649
1650
self.api_version = version.parse(netbox_api_version)
1651
+ parsed_endpoint_url = urlparse(self.api_endpoint)
1652
+ base_path = parsed_endpoint_url.path
1653
1654
if self.api_version >= version.parse("3.5.0"):
- parsed_endpoint_url = urlparse(self.api_endpoint)
- base_path = parsed_endpoint_url.path
1655
self.allowed_device_query_parameters = [
1656
p["name"]
1657
for p in openapi["paths"][base_path + "/api/dcim/devices/"]["get"][
0 commit comments