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:
@ -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):
|
||||||
|
Reference in New Issue
Block a user