Make body of std.email optional

According to SMTP protocol both the subject and body of the email
can be blank. Hence, making the body of std.email as optional.

Change-Id: I1a2551467247a46c4e3fa5425a367d0f83756b9c
Closes-Bug: #1649366
This commit is contained in:
Sharat Sharma 2016-12-21 13:15:00 +05:30
parent c6dcfe92c0
commit 4cea9bd18b

View File

@ -282,7 +282,7 @@ class SendEmailAction(base.Action):
# Task invocation parameters. # Task invocation parameters.
self.to = to_addrs self.to = to_addrs
self.subject = subject or "<No subject>" self.subject = subject or "<No subject>"
self.body = body self.body = body or "<No body>"
# Action provider settings. # Action provider settings.
self.smtp_server = smtp_server self.smtp_server = smtp_server