mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
prevent unicode bug in job_explanation
This commit is contained in:
parent
ee0e239a9e
commit
54c0436959
@ -533,7 +533,8 @@ class ProjectUpdate(UnifiedJob, ProjectOptions, JobNotificationMixin, TaskManage
|
||||
res = super(ProjectUpdate, self).cancel(job_explanation=job_explanation, is_chain=is_chain)
|
||||
if res and self.launch_type != 'sync':
|
||||
for inv_src in self.scm_inventory_updates.filter(status='running'):
|
||||
inv_src.cancel(job_explanation='Source project update `{}` was canceled.'.format(self.name))
|
||||
inv_src.cancel(job_explanation=six.text_type(
|
||||
'Source project update `{}` was canceled.').format(self.name))
|
||||
return res
|
||||
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user