mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2026-03-21 12:08:39 -06:00
Modified API call to sites.all for testing the API connection to devices.count.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user