You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just saw your comment. Thanks for the fix, but don't you think that putting the same site property twice is unnecessary? If it can't be different (it most definitely shouldn't) then there should be no reason to define it twice in the same module.
I've added filter options to the location parameter. You will need to use it like this:
- name: Creating racks
netbox.netbox.netbox_rack:
data:
name: Rack 1
site: site name
location:
name: location name
site: site name
Ansible NetBox Collection version
v3.11
Ansible version
Running in AWX. Version is irrelevant to the case.
NetBox version
3.3.7
Python version
3.8
Steps to Reproduce
Racks are created like so:
using looped values defined like so:
Expected Behavior
netbox_rack
module should look at unique site/location pairs, instead of only unique locations, as it is now.Similar issue has been already discussed and resolved as part of a different module: #958 therefore it should be a quick and easy fix.
Observed Behavior
netbox_rack
module fails to create a new rack when there's more than one location with the same name, regardless of them being in different sites:The text was updated successfully, but these errors were encountered: