-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email with custom notifications not working #13983
Comments
Issue still present in 22.2.0 |
Issue still present in 23.0.0 |
For workflow pending message, Reffering properties of Thus, the error handling during creating the notification message should be improved. |
I see, thanks for the info! Shame that this is still broken, but will wait for a fix to hopefully come around soon. |
In the current implementation, it seems to be designed behavior that return empty string if any errors are occurred during templating custom message fields. This is an understandable implementation, since the complex Jinja2 syntax makes it difficult to ignore only where errors occur. awx/awx/main/models/notifications.py Lines 482 to 492 in 15925f1
However, if the body for the mail is an empty string, there appears to be a lack of line breaks at the end of the source of the email being sent. This seems to prevent some email clients from interpreting the email as valid, and this causes the correctly templated subject line to be ignored. Just add one line break and at least the subject line will appear (kurokobo@4ae8ed5). The options we can take are as follows
|
Please confirm the following
security@ansible.com
instead.)Bug Summary
Inputting valid attributes into custom notifications results in email being blank.
AWX version
22.1.0
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
Expected results
The user who ran the job should appear with the job name.
Actual results
Email is sent blank.
Additional information
No response
The text was updated successfully, but these errors were encountered: