Fixed some minor Flake8 errors

This commit is contained in:
TheNetworkGuy 2025-04-28 15:10:48 +02:00
parent e91eecffaa
commit 04a610cf84

View File

@ -157,7 +157,8 @@ class PhysicalDevice():
if config["inventory_mode"] == "disabled":
if config["inventory_sync"]:
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
if config["inventory_mode"] == "manual":
self.inventory_mode = 0
@ -409,7 +410,8 @@ class PhysicalDevice():
# Set Zabbix proxy if defined
self.setProxy(proxies)
# Set basic data for host creation
create_data = {"host": self.name,
create_data = {
"host": self.name,
"name": self.visible_name,
"status": self.zabbix_state,
"interfaces": interfaces,