diff --git a/bumiworker/bumiworker/tasks.py b/bumiworker/bumiworker/tasks.py index 28ed4406e..28e11f0ff 100644 --- a/bumiworker/bumiworker/tasks.py +++ b/bumiworker/bumiworker/tasks.py @@ -561,13 +561,15 @@ def _execute(self): class SetFailedNotifiable(SetFailed): def send_failure_service_email(self, organization_id, reason, failed_modules): + _, org = self.rest_cl.organization_get(organization_id) recipient = self.config_cl.optscale_error_email_recipient() if not recipient: return subject = '[%s] Bumi task execution failed' % self.config_cl.public_ip() template_params = { 'texts': { - 'organization': {'id': organization_id}, + 'organization': {'id': organization_id, + 'name': org['name']}, 'reason': reason, 'failed_modules': failed_modules }} diff --git a/herald/modules/email_generator/templates/bumi_module_execution_failed.html b/herald/modules/email_generator/templates/bumi_module_execution_failed.html index 223725d77..fccdac6fb 100644 --- a/herald/modules/email_generator/templates/bumi_module_execution_failed.html +++ b/herald/modules/email_generator/templates/bumi_module_execution_failed.html @@ -1,526 +1,480 @@ - -
-
-
-
-
|