mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-14 01:41:25 -06:00
Returns an error when user has a VC configured without the master selected.
This commit is contained in:
parent
c2525a1122
commit
66ceaffb11
@ -242,6 +242,11 @@ class NetworkDevice():
|
||||
f"not part of a cluster.")
|
||||
logger.warning(e)
|
||||
raise SyncInventoryError(e)
|
||||
elif(not self.nb.virtual_chassis.master):
|
||||
e = (f"{self.name} is part of a Netbox virtual chassis which does "
|
||||
"not have a master configured. Skipping for this reason.")
|
||||
logger.error(e)
|
||||
raise SyncInventoryError(e)
|
||||
else:
|
||||
return self.nb.virtual_chassis.master.id
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user