Modified API call to sites.all for testing the API connection to devices.count.

This commit is contained in:
TheNetworkGuy
2026-02-23 13:15:15 +01:00
parent 4185aaba24
commit 489a70b703
+1 -1
View File
@@ -91,7 +91,7 @@ class Sync:
logger.debug("NetBox version is %s.", nb_version)
# Test API access by attempting to access a basic endpoint
# This will catch authorization errors early
netbox.dcim.sites.all()
netbox.dcim.devices.count()
self.netbox = netbox
self.nb_version = nb_version
except RequestsConnectionError: