mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2026-03-21 12:08:39 -06:00
Replaced raise with return False statement and added return True at the end of the function.
This commit is contained in:
@@ -184,7 +184,7 @@ class Sync:
|
||||
if not self.netbox or not self.zabbix:
|
||||
e = "Not connected to NetBox or Zabbix. Please run the connect function first."
|
||||
logger.error(e)
|
||||
raise SyncError(e)
|
||||
return False
|
||||
device_cfs = []
|
||||
vm_cfs = []
|
||||
# Create API call to get all custom fields which are on the device objects
|
||||
@@ -422,3 +422,4 @@ class Sync:
|
||||
except SyncError:
|
||||
pass
|
||||
self.zabbix.logout()
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user