Add owner's email to the subject

This commit is contained in:
PCoder 2018-07-25 22:04:44 +02:00
parent a5cdfab306
commit df10e84418

View file

@ -1425,7 +1425,9 @@ class VirtualMachineView(LoginRequiredMixin, View):
else: else:
sleep(2) sleep(2)
if 'status' not in response: if 'status' not in response:
vm_msg = "VM {} has not terminated yet!".format(vm.id) vm_msg = "VM {} of user {} has not terminated yet!".format(
vm.id, owner.email
)
admin_email_body['status'] = vm_msg admin_email_body['status'] = vm_msg
logger.error(vm_msg) logger.error(vm_msg)
err_email_data = { err_email_data = {