LAVA: Fix syntax on email notifaction
This applys the fix on the email notifaction that was breaking the job
submission.
Signed-off-by: Benjamin Copeland <ben.copeland@linaro.org>
Change-Id: I46f57eaec1a773dc1f8944de60b959ef3cb1d56a
diff --git a/lava_helper/jinja2_templates/base.jinja2 b/lava_helper/jinja2_templates/base.jinja2
index 9b751c3..de44060 100644
--- a/lava_helper/jinja2_templates/base.jinja2
+++ b/lava_helper/jinja2_templates/base.jinja2
@@ -39,7 +39,9 @@
status: incomplete
verbosity: quiet
recipients:
- - to: {{ notification_email }}
+ - to:
+ email: {{ notification_email }}
+ method: email
{% endblock %}
{% block actions %}
diff --git a/lava_helper/lava_create_jobs.py b/lava_helper/lava_create_jobs.py
index 33388c1..446985f 100755
--- a/lava_helper/lava_create_jobs.py
+++ b/lava_helper/lava_create_jobs.py
@@ -69,6 +69,7 @@
"build_name": os.getenv('CONFIG_NAME'),
"device_type": config["device_type"],
"job_timeout": config["job_timeout"],
+ "notification_email": config.get("notification_email", ''),
"action_timeout": config.get("action_timeout", ''),
"monitor_timeout": config.get("monitor_timeout", ''),
"poweroff_timeout": config.get("poweroff_timeout", ''),