The device is assigned to the rack object corresponding to the name and location specified in the device configuration (data): device "foobar" is placed into rack "A-1" of location "ACME"
If multiple racks with the same name are encountered, only the racks that are in the specified location should be returned.
Ex:
Observed Behavior
All racks matching the specified rack name across all locations are returned, causing a "More than one result returned for rack" error to be thrown: the task does not update the device's rack because it sees multiple racks named "A-1" across multiple locations
All racks matching the rack name are returned when we should only be getting one whose name matches and is a member of the specified location.
Ansible NetBox Collection version
v3.8.0
Ansible version
NetBox version
v3.5.4
Python version
3.10
Steps to Reproduce
DCIM Staging:
Ansible task:
Expected Behavior
The device is assigned to the rack object corresponding to the name and location specified in the device configuration (
data
): device "foobar" is placed into rack "A-1" of location "ACME"If multiple racks with the same name are encountered, only the racks that are in the specified location should be returned.
Ex:
Observed Behavior
All racks matching the specified rack name across all locations are returned, causing a "More than one result returned for rack" error to be thrown: the task does not update the device's rack because it sees multiple racks named "A-1" across multiple locations
All racks matching the rack name are returned when we should only be getting one whose name matches and is a member of the specified location.