Fix notification_data attempting to access name property of an int

This commit is contained in:
Wayne Witzel III 2018-01-17 21:46:49 +00:00
parent 1a98cedc0f
commit 4a28065dbb

View File

@ -675,7 +675,7 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
data.update(dict(inventory=self.inventory.name if self.inventory else None,
project=self.project.name if self.project else None,
playbook=self.playbook,
credential=self.credential.name if self.credential else None,
credential=getattr(self.get_deprecated_credential('ssh'), 'name', None),
limit=self.limit,
extra_vars=self.display_extra_vars(),
hosts=all_hosts))