TheNetworkGuy / netbox-zabbix-sync

Python script to synchronise Netbox devices to Zabbix.
MIT License
120 stars 28 forks source link

Allow proxy null value #71

Closed q1x closed 1 month ago

q1x commented 1 month ago

Currently, when specifying a null value for the Zabbix Proxy in the NetBox Config Context, the script tries to lookup a proxy with the name None:

2024-07-24 10:42:50,769 - Netbox-Zabbix-sync - WARNING - Device **redacted**: unable to find proxy None

This pull request stops the script from looking up proxy names when a null value is present.

TheNetworkGuy commented 1 month ago

Looks good to me! Thanks for the fix!