mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-21 00:19:42 +02:00
check if devname key exists before renaming
This commit is contained in:
@ -94,6 +94,7 @@ def process(proc_data):
|
||||
}
|
||||
]
|
||||
"""
|
||||
if 'devname' in proc_data:
|
||||
proc_data['device'] = proc_data.pop('devname')
|
||||
|
||||
for entry in proc_data:
|
||||
|
Reference in New Issue
Block a user