mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-23 17:08:46 -06:00
Logger added at KeyError
This commit is contained in:
parent
95467063d5
commit
9b8bde9527
@ -225,6 +225,7 @@ class NetworkDevice():
|
||||
self.zbx_templates = self.config_context["zabbix"]["templates"]
|
||||
except KeyError:
|
||||
e = "Config context for Zabbix template was not found for host {self.name}"
|
||||
logger.error(e)
|
||||
else:
|
||||
if(template_cf in device_type_cf):
|
||||
self.template_name = device_type_cf[template_cf]
|
||||
|
Loading…
Reference in New Issue
Block a user