mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
Check Inventory ask_inventory_on_launch value when verifying template validity
This commit is contained in:
@@ -64,7 +64,7 @@ function ListTemplatesController(
|
|||||||
|
|
||||||
vm.isInvalid = (template) => {
|
vm.isInvalid = (template) => {
|
||||||
if(isJobTemplate(template)) {
|
if(isJobTemplate(template)) {
|
||||||
return (template.inventory === null || template.project == null)
|
return template.project === null || (template.inventory === null && template.ask_inventory_on_launch === false);
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user