mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
Check Inventory ask_inventory_on_launch value when verifying template validity
This commit is contained in:
parent
8a25342ce5
commit
c2a3e82d29
@ -64,7 +64,7 @@ function ListTemplatesController(
|
||||
|
||||
vm.isInvalid = (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 {
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user