1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

don't modify detail_type value since it is no longer a key

This commit is contained in:
Kelly Brazil
2021-03-17 14:31:51 -07:00
parent bfee017c13
commit bd68ad4034

View File

@ -194,9 +194,9 @@ def parse(data, raw=False, quiet=False):
device_obj[key] = val
continue
# set the general detail key
# set the general detail object
if line.startswith(' ') and ':' not in line:
detail_type = line.strip().lower().replace('-', '_').replace(' ', '_').replace('(', '').replace(')', '')
detail_type = line.strip()
device_obj['detail'] = {
'type': detail_type
}