Add a default for the subject

This commit is contained in:
Seth House 2016-03-08 16:56:54 -07:00
parent 26479bee24
commit 17b8cd755f

View file

@ -133,7 +133,7 @@ def returner(ret):
port = _options.get('port')
user = _options.get('username')
passwd = _options.get('password')
subject = _options.get('subject')
subject = _options.get('subject') or 'Email from Salt'
gpgowner = _options.get('gpgowner')
fields = _options.get('fields').split(',') if 'fields' in _options else []
smtp_tls = _options.get('tls')