Scan job success notification could fail

We can't assume a project is part of a scan job template so here we'll
short circuit that
This commit is contained in:
Matthew Jones 2016-06-06 12:07:54 -04:00
parent b0de8038d0
commit 7e7a611366

View File

@ -680,7 +680,7 @@ class Job(UnifiedJob, JobOptions):
processed=h.processed,
skipped=h.skipped)
data.update(dict(inventory=self.inventory.name,
project=self.project.name,
project=self.project.name if self.project else None,
playbook=self.playbook,
credential=self.credential.name,
limit=self.limit,