Skip to content
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

Make 'message' last element of mail-format in monitrc.erb #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnzimm
Copy link

Fixes #33. The "message" element in "mailformat" needs to be the last entry. Otherwise the elements following "message" after sorting get included in the body of the message. I've saved the value for "message", removed it from the hash, let the sort happen on the remaining elements, then append the saved message to the mailformat block before closing.

I've tested on my systems both supplying a custom message to the module and supplying no message to the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant