Ansible awx.awx collection tasks altering configuration for a pre-existing inventory should be organization scope aware #15117
Labels
community
component:awx_collection
issues related to the collection for controlling AWX
needs_triage
type:bug
Please confirm the following
security@ansible.com
instead.)Bug Summary
collection version 24.2.0
AWX version 23.9.0
If (at least) 2 inventories with the same name exist, the awx.awx.host task is looping with an error:
"msg": "Request to /api/v2/inventories/?name=<duplicated_name> returned 2 items, expected 1",
there is indeed the same <duplicated_name> inventory name on 2 different organizations
AWX version
23.9.0
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
ansible [core 2.16.2]
Operating system
wsl - fedoraremix
Web browser
No response
Steps to reproduce
create 2 inventories with the same name on 2 different organization, example:
and try to add host to one of them
will result in the error mentioned in the description of this issue
Expected results
mutltiple choices here:
Actual results
failing with the message mentioned in the description
Additional information
No response
The text was updated successfully, but these errors were encountered: