diff --git a/netbox_agent/inventory.py b/netbox_agent/inventory.py index 8321bba..d571e6a 100644 --- a/netbox_agent/inventory.py +++ b/netbox_agent/inventory.py @@ -139,7 +139,7 @@ class Inventory(): for nb_motherboard in nb_motherboards: if nb_motherboard.serial not in [x['serial'] for x in motherboards]: - logging.info('Deleting unknown motherboard {vendor} {motherboard}/{serial}'.format( + logging.info('Deleting unknown motherboard {motherboard}/{serial}'.format( motherboard=self.lshw.motherboard, serial=nb_motherboard.serial, )) diff --git a/netbox_agent/lshw.py b/netbox_agent/lshw.py index 3387c41..6e11fb7 100644 --- a/netbox_agent/lshw.py +++ b/netbox_agent/lshw.py @@ -86,8 +86,10 @@ class LSHW(): elif "nvme" in obj["configuration"]["driver"]: nvme = json.loads( - subprocess.check_output(["nvme", '-list', '-o', 'json'], - encoding='utf8')) # noqa: E128 + subprocess.check_output( + ["nvme", '-list', '-o', 'json'], + encoding='utf8') + ) d = {} d["vendor"] = obj["vendor"]