Empty value in execution_environment should remove selections (ansible.controller.job_template) #14841
Open
5 of 11 tasks
Labels
community
component:awx_collection
issues related to the collection for controlling AWX
good first issue
type:bug
Please confirm the following
security@ansible.com
instead.)Bug Summary
When a template has Execution Environment selected but playbook specifies execution_environment = "", the selection in the template should be removed.
AWX version
23.2.0
Select the relevant components
Installation method
docker development environment
Modifications
no
Ansible version
2.14.2
Operating system
Red Hat Enterprise Linux release 9.1 (Plow)
Web browser
Chrome
Steps to reproduce
Expected results
TASK [Create templates] ************************************************************************************************************************************
changed: [localhost]
Actual results
TASK [Get all templates from AAP] **************************************************************************************************************************
ok: [localhost]
TASK [debug] ***********************************************************************************************************************************************
ok: [localhost] => {
"aap_templates.assets.job_templates[0].execution_environment": {
"name": "Automation Hub Default execution environment",
"type": "execution_environment"
}
}
TASK [set_fact] ********************************************************************************************************************************************
ok: [localhost]
TASK [Create templates] ************************************************************************************************************************************
ok: [localhost]
Additional information
No response
The text was updated successfully, but these errors were encountered: