-
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
NetBox version
v2.11.1
Python version
3.9
Steps to Reproduce
curl -X POST "http://localhost:8000/api/dcim/rack-reservations/" -H "accept: application/json" -H "Authorization: Token 0123456789abcdef0123456789abcdef01234567" -H "Content-Type: application/json" -H "X-CSRFToken: PyMWmxAR5J2DM31IJ1dhdUvv3p5xlEDhh5Qh2XUqJkBA5PgkjZAwCqDEUheK6b17" -d "{ "rack": 7, "units": [5,6], "user": 8, "description": "string"}"results in:
{
"id": 8,
"url": "http://localhost:8000/api/dcim/rack-reservations/8/",
"display": "Reservation for rack racks_1",
"rack": {
"id": 7,
"url": "http://localhost:8000/api/dcim/racks/7/",
"display": "racks_1",
"name": "racks_1",
"display_name": "racks_1"
},
"units": [
5,
6
],
"created": "2021-06-01",
"user": {
"id": 1,
"url": "http://localhost:8000/api/users/users/1/",
"display": "admin",
"username": "admin"
},
"tenant": null,
"description": "string",
"tags": [],
"custom_fields": {}
}Expected Behavior
I expect the rack reservation to be mapped to user with the id 8.
Observed Behavior
Instead of the rack_reservation is mapped to the admin account (id=1).
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