mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-16 04:02:56 -06:00
Fixed invalid mapper log message even when not using the inventory mapping function.
This commit is contained in:
parent
2b92f8da9b
commit
4de022496e
@ -236,8 +236,8 @@ class NetworkDevice():
|
|||||||
# Value is not a string or numeral, probably not what the user expected.
|
# Value is not a string or numeral, probably not what the user expected.
|
||||||
self.logger.error(f"Device {self.name}: Inventory lookup for '{nb_inv_field}'"
|
self.logger.error(f"Device {self.name}: Inventory lookup for '{nb_inv_field}'"
|
||||||
" returned an unexpected type: it will be skipped.")
|
" returned an unexpected type: it will be skipped.")
|
||||||
self.logger.debug(f"Device {self.name}: Inventory mapping complete. "
|
self.logger.debug(f"Device {self.name}: Inventory mapping complete. "
|
||||||
f"Mapped {len(list(filter(None, self.inventory.values())))} field(s)")
|
f"Mapped {len(list(filter(None, self.inventory.values())))} field(s)")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def isCluster(self):
|
def isCluster(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user