mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-14 01:41:25 -06:00
Fixed some minor Flake8 errors
This commit is contained in:
parent
e91eecffaa
commit
04a610cf84
@ -157,7 +157,8 @@ class PhysicalDevice():
|
|||||||
if config["inventory_mode"] == "disabled":
|
if config["inventory_mode"] == "disabled":
|
||||||
if config["inventory_sync"]:
|
if config["inventory_sync"]:
|
||||||
self.logger.error(f"Host {self.name}: Unable to map NetBox inventory to Zabbix. "
|
self.logger.error(f"Host {self.name}: Unable to map NetBox inventory to Zabbix. "
|
||||||
"Inventory sync is enabled in config but inventory mode is disabled.")
|
"Inventory sync is enabled in "
|
||||||
|
"config but inventory mode is disabled.")
|
||||||
return True
|
return True
|
||||||
if config["inventory_mode"] == "manual":
|
if config["inventory_mode"] == "manual":
|
||||||
self.inventory_mode = 0
|
self.inventory_mode = 0
|
||||||
@ -409,7 +410,8 @@ class PhysicalDevice():
|
|||||||
# Set Zabbix proxy if defined
|
# Set Zabbix proxy if defined
|
||||||
self.setProxy(proxies)
|
self.setProxy(proxies)
|
||||||
# Set basic data for host creation
|
# Set basic data for host creation
|
||||||
create_data = {"host": self.name,
|
create_data = {
|
||||||
|
"host": self.name,
|
||||||
"name": self.visible_name,
|
"name": self.visible_name,
|
||||||
"status": self.zabbix_state,
|
"status": self.zabbix_state,
|
||||||
"interfaces": interfaces,
|
"interfaces": interfaces,
|
||||||
|
Loading…
Reference in New Issue
Block a user