fix flake8 errors
This commit is contained in:
parent
bd5b45fc6d
commit
29d2bff805
2 changed files with 5 additions and 3 deletions
|
@ -139,7 +139,7 @@ class Inventory():
|
||||||
|
|
||||||
for nb_motherboard in nb_motherboards:
|
for nb_motherboard in nb_motherboards:
|
||||||
if nb_motherboard.serial not in [x['serial'] for x in 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,
|
motherboard=self.lshw.motherboard,
|
||||||
serial=nb_motherboard.serial,
|
serial=nb_motherboard.serial,
|
||||||
))
|
))
|
||||||
|
|
|
@ -86,8 +86,10 @@ class LSHW():
|
||||||
|
|
||||||
elif "nvme" in obj["configuration"]["driver"]:
|
elif "nvme" in obj["configuration"]["driver"]:
|
||||||
nvme = json.loads(
|
nvme = json.loads(
|
||||||
subprocess.check_output(["nvme", '-list', '-o', 'json'],
|
subprocess.check_output(
|
||||||
encoding='utf8')) # noqa: E128
|
["nvme", '-list', '-o', 'json'],
|
||||||
|
encoding='utf8')
|
||||||
|
)
|
||||||
|
|
||||||
d = {}
|
d = {}
|
||||||
d["vendor"] = obj["vendor"]
|
d["vendor"] = obj["vendor"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue