mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-12-26 23:17:43 -06:00
💄 Codebase formatting
This commit is contained in:
@@ -57,7 +57,9 @@ def cf_to_string(cf, key="name", logger=None):
|
||||
if isinstance(cf, dict):
|
||||
if key in cf:
|
||||
return cf[key]
|
||||
logger.error("Conversion of custom field failed, '%s' not found in cf dict.", key)
|
||||
logger.error(
|
||||
"Conversion of custom field failed, '%s' not found in cf dict.", key
|
||||
)
|
||||
return None
|
||||
return cf
|
||||
|
||||
@@ -172,7 +174,7 @@ def verify_hg_format(
|
||||
if (
|
||||
hg_object not in allowed_objects[hg_type]
|
||||
and hg_object not in allowed_objects["cfs"][hg_type]
|
||||
and not hg_object.startswith(('"',"'"))
|
||||
and not hg_object.startswith(('"', "'"))
|
||||
):
|
||||
e = (
|
||||
f"Hostgroup item {hg_object} is not valid. Make sure you"
|
||||
|
||||
Reference in New Issue
Block a user