Skip to content

Commit becdd36

Browse files
authored
Closes #1052: Schema caching is broken (#1053)
* Closes #1052: Schema caching is broken
1 parent f55f567 commit becdd36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/inventory/nb_inventory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,8 @@ def fetch_api_docs(self):
15061506
openapi = {}
15071507

15081508
cached_api_version = openapi.get("info", {}).get("version")
1509+
if cached_api_version:
1510+
cached_api_version = ".".join(cached_api_version.split(".")[:2])
15091511

15101512
if netbox_api_version != cached_api_version:
15111513
if version.parse(netbox_api_version) >= version.parse("3.5.0"):

0 commit comments

Comments
 (0)