From 4de022496e41a8301a64e735bb27375c7baaa854 Mon Sep 17 00:00:00 2001 From: TheNetworkGuy Date: Wed, 24 Jul 2024 14:31:29 +0200 Subject: [PATCH] Fixed invalid mapper log message even when not using the inventory mapping function. --- modules/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/device.py b/modules/device.py index 196bd2f..70d6790 100644 --- a/modules/device.py +++ b/modules/device.py @@ -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):