mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Merge pull request #192 from AlanCoding/alan_bug
fix logger bug introduced in task except
This commit is contained in:
commit
9f63624292
@ -705,6 +705,8 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
||||
JobNotificationMixin
|
||||
'''
|
||||
def get_notification_templates(self):
|
||||
if not self.job_template:
|
||||
return NotificationTemplate.objects.none()
|
||||
return self.job_template.notification_templates
|
||||
|
||||
def get_notification_friendly_name(self):
|
||||
|
||||
@ -350,7 +350,7 @@ def handle_work_error(self, task_id, subtasks=None):
|
||||
try:
|
||||
instance = UnifiedJob.get_instance_by_type(each_task['type'], each_task['id'])
|
||||
except ObjectDoesNotExist:
|
||||
logger.warning('Missing {} `{}` in success callback.'.format(each_task['type'], task_actual['id']))
|
||||
logger.warning('Missing {} `{}` in success callback.'.format(each_task['type'], each_task['id']))
|
||||
instance = None
|
||||
if not instance:
|
||||
# Unknown task type
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user