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

Closed
opened 2025-12-29 19:22:31 +01:00 by adam · 0 comments
Owner

Originally created by @netsandbox on GitHub (May 27, 2021).

Originally assigned to: @jeremystretch on GitHub.

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

Originally created by @netsandbox on GitHub (May 27, 2021). Originally assigned to: @jeremystretch on GitHub. ### 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](https://user-images.githubusercontent.com/165430/119826233-1ba69180-bef8-11eb-90eb-13734d99fd9b.png) ![netbox_2 11_api_update_object](https://user-images.githubusercontent.com/165430/119826289-25c89000-bef8-11eb-8a24-7c5d8380f00d.png)
adam added the type: bugstatus: accepted labels 2025-12-29 19:22:31 +01:00
adam closed this issue 2025-12-29 19:22:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4947