mirror of
https://github.com/ansible/awx.git
synced 2026-06-27 01:18:02 -02:30
runtime inventory compatibility with blank, and resolve issue #1453
This commit is contained in:
@@ -265,7 +265,9 @@ class JobTemplate(UnifiedJobTemplate, JobOptions, ResourceMixin):
|
||||
Return whether job template can be used to start a new job without
|
||||
requiring any user input.
|
||||
'''
|
||||
return bool(self.credential and not len(self.passwords_needed_to_start) and not len(self.variables_needed_to_start))
|
||||
return bool(self.credential and not len(self.passwords_needed_to_start)
|
||||
and not len(self.variables_needed_to_start)
|
||||
and self.inventory)
|
||||
|
||||
@property
|
||||
def variables_needed_to_start(self):
|
||||
|
||||
Reference in New Issue
Block a user