From 46c6723a965c722218221fbb1f0b578fed2cad36 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 2 Oct 2020 14:21:17 -0400 Subject: [PATCH] fix a display bug in notification bodies with unicode characters see: https://github.com/ansible/awx/issues/7400 --- awx/main/models/notifications.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/awx/main/models/notifications.py b/awx/main/models/notifications.py index c374f6042081..11d97c7690df 100644 --- a/awx/main/models/notifications.py +++ b/awx/main/models/notifications.py @@ -393,7 +393,11 @@ def context(self, serialized_job): 'job': job_context, 'job_friendly_name': self.get_notification_friendly_name(), 'url': self.get_ui_url(), - 'job_metadata': json.dumps(self.notification_data(), indent=4) + 'job_metadata': json.dumps( + self.notification_data(), + ensure_ascii=False, + indent=4 + ) } def build_context(node, fields, allowed_fields):