-
Feature Request
-
Resolution: Unresolved
-
Normal
-
None
-
2.4
-
False
-
-
False
Description
Workflow template launch fails with error when inventory is set to "Prompt on launch" for job template:
No error handling paths found, marking workflow as failed.
Steps to Reproduce
Scenario 1
- Create a job template with an inventory selected
- Gets saved without issue
Scenario 2
- Create a job template with an inventory "prompted on launch"
- Gets saved without issue
Scenario 3
- Create a Workflow job template using the job template from Scenario 1
- Gets saved without issue
Scenario 4
- Create a Workflow job template using the job template from Scenario 2
- Cannot save with error "Danger alert: An inventory must be selected".
selecting a template in a workflow node that has 'prompt on launch' set for inventory requires me to choose the inventory during the creation of the workflow node.
Scenario 5
- Create a Workflow job template (with only name) using the job template from Scenario 1
- Gets saved without issue
- Modify the job template from Scenario 1 so that it is "prompted on launch"
- Gets saved without issue --> Conflict with Scenario 4
Actual Behavior
After adding the job template in workflow, we can set the inventory to "prompt on launch" in job template and it gives no error.
Where as we cannot create the workflow template with job template having "prompt on launch" enabled in the first place.
Expected Behavior
Job Template with "prompt on launch" without inventory should be able to add in the workflow template without error from WEBUI as well as API.