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