Send VM deleted message to error mail list

This commit is contained in:
PCoder 2020-01-02 12:17:57 +05:30
parent 5f81bc9091
commit b4a3c5e277

View file

@ -1824,7 +1824,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
'subject': ("Deleted " if response['status'] 'subject': ("Deleted " if response['status']
else "ERROR deleting ") + admin_msg_sub, else "ERROR deleting ") + admin_msg_sub,
'from_email': settings.DCL_SUPPORT_FROM_ADDRESS, 'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,
'to': ['info@ungleich.ch'], 'to': [settings.DCL_ERROR_EMAILS_TO_LIST],
'body': "\n".join( 'body': "\n".join(
["%s=%s" % (k, v) for (k, v) in admin_email_body.items()]), ["%s=%s" % (k, v) for (k, v) in admin_email_body.items()]),
} }