From 4cea9bd18bb04d8663ccf1ea64c71e8d7682f462 Mon Sep 17 00:00:00 2001 From: Sharat Sharma Date: Wed, 21 Dec 2016 13:15:00 +0530 Subject: [PATCH] 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 --- mistral/actions/std_actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mistral/actions/std_actions.py b/mistral/actions/std_actions.py index 98d553e6..5c8da17f 100644 --- a/mistral/actions/std_actions.py +++ b/mistral/actions/std_actions.py @@ -282,7 +282,7 @@ class SendEmailAction(base.Action): # Task invocation parameters. self.to = to_addrs self.subject = subject or "" - self.body = body + self.body = body or "" # Action provider settings. self.smtp_server = smtp_server