runtime inventory compatibility with blank, and resolve issue #1453

This commit is contained in:
AlanCoding
2016-04-08 14:49:42 -04:00
parent f471f9b072
commit 86aa0136a2
2 changed files with 10 additions and 3 deletions

View File

@@ -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):