From eaa6567cf312174f1c7b8d55f2b456545a75d1ed Mon Sep 17 00:00:00 2001 From: Aaron Tan Date: Wed, 28 Sep 2016 15:45:23 -0400 Subject: [PATCH] Convert notification_subject from byte string to unicode. --- awx/main/models/notifications.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/awx/main/models/notifications.py b/awx/main/models/notifications.py index 442b5dc2c8..a9dbcdebdc 100644 --- a/awx/main/models/notifications.py +++ b/awx/main/models/notifications.py @@ -181,11 +181,11 @@ class JobNotificationMixin(object): def _build_notification_message(self, status_str): notification_body = self.notification_data() - notification_subject = "{} #{} '{}' {} on Ansible Tower: {}".format(self.get_notification_friendly_name(), - self.id, - self.name, - status_str, - notification_body['url']) + notification_subject = u"{} #{} '{}' {} on Ansible Tower: {}".format(self.get_notification_friendly_name(), + self.id, + self.name, + status_str, + notification_body['url']) notification_body['friendly_name'] = self.get_notification_friendly_name() return (notification_subject, notification_body)