1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-21 00:19:42 +02:00

add operation value updates to _process

This commit is contained in:
Kelly Brazil
2024-02-29 14:32:46 -08:00
parent 07e9b46535
commit b0c98a56ce

View File

@ -68,6 +68,16 @@ def _process(proc_data: List[JSONDictType]) -> List[JSONDictType]:
List of Dictionaries. Structured to conform to the schema.
"""
op_map = {
'Conf': 'configure',
'Remv': 'remove',
'Inst': 'unpack'
}
for item in proc_data:
if 'operation' in item and item['operation']:
item['operation'] = op_map[item['operation']]
return proc_data