inventory_sources built using the api plugin in object_diff do not include the source key #773
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
filetree/object_diff
Summary
When trying to remove inventory_sources not declared in Conf as code using the object_diff role, the role fails in the task
[ infra.configuration.inventory_sources : Managing Inventory Sources ]
with the following error :Because the inventory_sources list read from the Controller using the API plugin do not create a
source
key for each element in the list. Below an example of thecontroller_inventory_sources
list built using the object_diff role. We can see that there is no keysource
:Issue Type
Ansible, Collection, Controller details
ansible version : 2.15.0
used collections :
ansible.controller 4.5.1
infra.controller_configuration 2.6.0
Controller version 4.5.1
OS / ENVIRONMENT
RHEL 8.6
Desired Behavior
Each element of the list
controller_inventory_sources
built using the object_diff role automatically from the Controller should have the keysource
Actual Behavior
The elements of the list
controller_inventory_sources
do not contains the keysource
which cause the role to fail in the task[ infra.configuration.inventory_sources : Managing Inventory Sources ]
STEPS TO REPRODUCE
Manually create an inventory_source in the Controller web interface that do is not declared in the configuration as code. Then call the object diff role to remove inventory_sources not in the configuration as code as follow :
The text was updated successfully, but these errors were encountered: