mirror of
https://github.com/ansible/awx.git
synced 2026-04-04 17:55:06 -02:30
Fix notification_data attempting to access name property of an int
This commit is contained in:
@@ -675,7 +675,7 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
|||||||
data.update(dict(inventory=self.inventory.name if self.inventory else None,
|
data.update(dict(inventory=self.inventory.name if self.inventory else None,
|
||||||
project=self.project.name if self.project else None,
|
project=self.project.name if self.project else None,
|
||||||
playbook=self.playbook,
|
playbook=self.playbook,
|
||||||
credential=self.credential.name if self.credential else None,
|
credential=getattr(self.get_deprecated_credential('ssh'), 'name', None),
|
||||||
limit=self.limit,
|
limit=self.limit,
|
||||||
extra_vars=self.display_extra_vars(),
|
extra_vars=self.display_extra_vars(),
|
||||||
hosts=all_hosts))
|
hosts=all_hosts))
|
||||||
|
|||||||
Reference in New Issue
Block a user