Fix for failing job template callback test.

This commit is contained in:
Chris Church 2013-10-11 23:25:23 -04:00
parent 54e0b814bf
commit c20300f6ce

View File

@ -1608,7 +1608,7 @@ class JobTemplate(CommonModel):
for pw in inventory_source.source_passwords_needed:
if pw not in needed:
needed.append(pw)
return bool(len(needed) == 0)
return bool(self.credential and not len(needed))
class Job(CommonModelNameNotUnique):
'''