Merge pull request #3615 from jangsutsr/3486_notification_failure_wrt_unicode_jt_name

Convert notification_subject from byte string to unicode.
This commit is contained in:
Aaron Tan
2016-09-28 16:26:21 -04:00
committed by GitHub

View File

@@ -181,7 +181,7 @@ 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(),
notification_subject = u"{} #{} '{}' {} on Ansible Tower: {}".format(self.get_notification_friendly_name(),
self.id,
self.name,
status_str,