1
0
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:
Kelly Brazil
2020-02-27 20:41:06 -08:00
parent f09d657f77
commit e5da34c233

View File

@ -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: