mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Convert notification_subject from byte string to unicode.
This commit is contained in:
parent
17f70fbc21
commit
eaa6567cf3
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user