From 54c0436959faf4ce6cb91a6bdf37a751c852891c Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Wed, 28 Feb 2018 11:01:20 -0500 Subject: [PATCH] prevent unicode bug in job_explanation --- awx/main/models/projects.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/models/projects.py b/awx/main/models/projects.py index 7798c62c9e..06156d95f3 100644 --- a/awx/main/models/projects.py +++ b/awx/main/models/projects.py @@ -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 '''