From df10e8441892d715e0137874e694d909d5bc5162 Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 25 Jul 2018 22:04:44 +0200 Subject: [PATCH] Add owner's email to the subject --- hosting/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosting/views.py b/hosting/views.py index 476c62ff..d256115d 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -1425,7 +1425,9 @@ class VirtualMachineView(LoginRequiredMixin, View): else: sleep(2) 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 logger.error(vm_msg) err_email_data = {