Skip to content

Change log shows tag changes when updating object by API without tag changes #6492

@netsandbox

Description

@netsandbox

NetBox version

v2.11.4

Python version

3.8

Steps to Reproduce

  1. create virtualization cluster "test"
  2. create tag "nfs"
  3. create virtual machine "test" with status "offline" and tag "nfs" (e.g. curl -sX POST -H "Authorization: Token $NETBOX_API_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json; indent=2" "$NETBOX_URL/api/virtualization/virtual-machines/" --data '{"name": "test", "cluster": {"name": "test"}, "status": "offline", "tags": [{"name": "nfs"}]}'
  4. update virtual machine with API request and set status to the current value "offline": curl -sX PATCH -H "Authorization: Token $NETBOX_API_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json; indent=2" "$NETBOX_URL/api/virtualization/virtual-machines/1507/" --data '{"status": "offline"}'

Expected Behavior

Change log shows no changes.

Observed Behavior

Change log shows that the tag "nfs" is removed, but when you look at the virtual machine, there is still the tag "nfs" assigned.
netbox_2 11_api_update_changelog
netbox_2 11_api_update_object

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions