fix flake8 errors

This commit is contained in:
Solvik Blum 2020-05-22 13:23:28 +02:00
parent bd5b45fc6d
commit 29d2bff805
2 changed files with 5 additions and 3 deletions

View file

@ -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,
))

View file

@ -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"]