wip (+4 squashed commits)

Squashed commits:
[d29a350] wip
[7f541ed] wip
[1e2902e] basic working version
[14b497a] wip
This commit is contained in:
Gilles Boccon-Gibod
2023-01-06 20:22:46 -08:00
parent 7867a99a54
commit 852c933c92
7 changed files with 859 additions and 7 deletions

View File

@@ -1641,9 +1641,11 @@ class HCI_Object:
# Get the value for the field
value = hci_object[key]
# Map the value if needed
# Check if there's a matching mapper passed
if value_mappers:
value_mapper = value_mappers.get(key, value_mapper)
# Map the value if we have a mapper
if value_mapper is not None:
value = value_mapper(value)