Skip to content

Commit

Permalink
Loosen up body check on template
Browse files Browse the repository at this point in the history
  • Loading branch information
David O Neill committed Mar 14, 2024
1 parent 393d9c3 commit 59265d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/main/models/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down

0 comments on commit 59265d1

Please sign in to comment.