From aa1ff55bbee880afeeb43ef7906db5b1adf36c33 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 12 Oct 2022 08:48:42 -0700 Subject: [PATCH] lower-case key names --- jc/parsers/lspci.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jc/parsers/lspci.py b/jc/parsers/lspci.py index ce233e61..8d8d01f5 100644 --- a/jc/parsers/lspci.py +++ b/jc/parsers/lspci.py @@ -103,11 +103,11 @@ def parse( raw_output.append(device_output) device_output = {} - device_output['Slot'] = line.split()[1] + device_output['slot'] = line.split()[1] continue key, val = line.split(maxsplit=1) - key = key[:-1] + key = key[:-1].lower() # numeric only (-nmmv) if item_id_p.match(val):