mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-13 15:24:48 -06:00
fixed linting
This commit is contained in:
parent
9933c97e94
commit
c2b25e0cd2
@ -229,7 +229,7 @@ class PhysicalDevice:
|
||||
self.inventory = field_mapper(
|
||||
self.name, self._inventory_map(), nbdevice, self.logger
|
||||
)
|
||||
self.logger.debug(f"Host {self.name}: Resolved inventory: {self.inventory}")
|
||||
self.logger.debug(f"Host {self.name}: Resolved inventory: {self.inventory}")
|
||||
return True
|
||||
|
||||
def isCluster(self):
|
||||
|
@ -168,7 +168,7 @@ def sanatize_log_output(data):
|
||||
if "macros" in data:
|
||||
for macro in sanitized_data["macros"]:
|
||||
# Check if macro is secret type
|
||||
if not (macro["type"] == str(1) or
|
||||
if not (macro["type"] == str(1) or
|
||||
macro["type"] == 1):
|
||||
continue
|
||||
macro["value"] = "********"
|
||||
|
@ -121,5 +121,5 @@ class ZabbixUsermacros:
|
||||
if m:
|
||||
macros.append(m)
|
||||
data={'macros': macros}
|
||||
self.logger.debug(f"Host {self.name}: Resolved macros: {sanatize_log_output(data)}")
|
||||
self.logger.debug(f"Host {self.name}: Resolved macros: {sanatize_log_output(data)}")
|
||||
return macros
|
||||
|
Loading…
Reference in New Issue
Block a user