From 1bbcdd25fc94f917a65f27110d485bc93ec6b524 Mon Sep 17 00:00:00 2001 From: David O Neill Date: Thu, 14 Mar 2024 17:22:11 +0000 Subject: [PATCH] Loosen up body check on template https://github.com/ansible/awx/issues/14985 https://github.com/ansible/awx/issues/13983 --- awx/main/models/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/notifications.py b/awx/main/models/notifications.py index 77f8032ce5eb..da03a7dd47f3 100644 --- a/awx/main/models/notifications.py +++ b/awx/main/models/notifications.py @@ -498,7 +498,7 @@ def build_notification_message(self, nt, status): # Body should have at least 2 CRLF, some clients will interpret # the email incorrectly with blank body. So we will check that - if len(body.strip().splitlines()) <= 2: + if len(body.strip().splitlines()) < 1: # blank body body = '\r\n'.join( [