You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
netbox.py doesn't correctly retrieve the fields which are type of "Selection" (for example the status field) , whether it is for grouping or for fetching hostvars.
netbox version used : 2.3.1
The structure of this type of field is like this
"status": {
"value": 1,
"label": "Active"
}
The problem seems to be that netbox.py retrieve only the [general] fields with the key name.
The bug is also present with custom_field of type Selection, but this time it's the key value that is fetched and thus incorrectly group by the id of the selected item.
Changing the key_map for custom_field to label fix this bug.
The text was updated successfully, but these errors were encountered:
Hello,
netbox.py doesn't correctly retrieve the fields which are type of "Selection" (for example the
status
field) , whether it is for grouping or for fetching hostvars.netbox version used : 2.3.1
The structure of this type of field is like this
The problem seems to be that netbox.py retrieve only the [general] fields with the key
name
.The bug is also present with custom_field of type Selection, but this time it's the key
value
that is fetched and thus incorrectly group by the id of the selected item.Changing the key_map for custom_field to
label
fix this bug.The text was updated successfully, but these errors were encountered: