-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Environment
- Python version: 3.7.3
- NetBox version: 2.9.11
Steps to Reproduce
- Create a new tag with any name, like "Testing"
- Get the same tag via API and see
tagged_itemsfield
Expected Behavior
tagged_items is 0 (API docs say the field is integer)
Observed Behavior
tagged_items is null
$ curl -s -X GET "http://netbox-test.example.net/api/extras/tags/?name=Testing" -H "Authorization: token xxx" | jq .
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 4,
"url": "http://netbox-test.example.net/api/extras/tags/4/",
"name": "Testing",
"slug": "testing",
"color": "9e9e9e",
"description": "",
"tagged_items": null
}
]
}
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application