Fixed invalid mapper log message even when not using the inventory mapping function.

This commit is contained in:
TheNetworkGuy 2024-07-24 14:31:29 +02:00
parent 2b92f8da9b
commit 4de022496e

View File

@ -236,8 +236,8 @@ class NetworkDevice():
# 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}'"
" returned an unexpected type: it will be skipped.")
self.logger.debug(f"Device {self.name}: Inventory mapping complete. "
f"Mapped {len(list(filter(None, self.inventory.values())))} field(s)")
self.logger.debug(f"Device {self.name}: Inventory mapping complete. "
f"Mapped {len(list(filter(None, self.inventory.values())))} field(s)")
return True
def isCluster(self):