Add owner's email to the subject
This commit is contained in:
		
					parent
					
						
							
								a5cdfab306
							
						
					
				
			
			
				commit
				
					
						df10e84418
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -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 = { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue