🎨 Formatted codebase

This commit is contained in:
Wouter de Bruijn
2025-06-17 09:21:59 +02:00
parent a57b51870f
commit 371e74fca8
13 changed files with 394 additions and 317 deletions

View File

@@ -57,8 +57,10 @@ class ZabbixUsermacros:
macro["macro"] = str(macro_name)
if isinstance(macro_properties, dict):
if not "value" in macro_properties:
self.logger.warning(f"Host {self.name}: Usermacro {macro_name} has "
"no value in Netbox, skipping.")
self.logger.warning(
f"Host {self.name}: Usermacro {macro_name} has "
"no value in Netbox, skipping."
)
return False
macro["value"] = macro_properties["value"]
@@ -83,8 +85,10 @@ class ZabbixUsermacros:
macro["description"] = ""
else:
self.logger.warning(f"Host {self.name}: Usermacro {macro_name} "
"has no value, skipping.")
self.logger.warning(
f"Host {self.name}: Usermacro {macro_name} "
"has no value, skipping."
)
return False
else:
self.logger.error(