1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

lower-case key names

This commit is contained in:
Kelly Brazil
2022-10-12 08:48:42 -07:00
parent 097d013447
commit aa1ff55bbe

View File

@ -103,11 +103,11 @@ def parse(
raw_output.append(device_output) raw_output.append(device_output)
device_output = {} device_output = {}
device_output['Slot'] = line.split()[1] device_output['slot'] = line.split()[1]
continue continue
key, val = line.split(maxsplit=1) key, val = line.split(maxsplit=1)
key = key[:-1] key = key[:-1].lower()
# numeric only (-nmmv) # numeric only (-nmmv)
if item_id_p.match(val): if item_id_p.match(val):