mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
Merge pull request #1394 from AlanCoding/text_type2
Prevent unicode bug in job_explanation
This commit is contained in:
@@ -533,7 +533,8 @@ class ProjectUpdate(UnifiedJob, ProjectOptions, JobNotificationMixin, TaskManage
|
|||||||
res = super(ProjectUpdate, self).cancel(job_explanation=job_explanation, is_chain=is_chain)
|
res = super(ProjectUpdate, self).cancel(job_explanation=job_explanation, is_chain=is_chain)
|
||||||
if res and self.launch_type != 'sync':
|
if res and self.launch_type != 'sync':
|
||||||
for inv_src in self.scm_inventory_updates.filter(status='running'):
|
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
|
return res
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user