added error msg
This commit is contained in:
		
					parent
					
						
							
								8ca1b13f80
							
						
					
				
			
			
				commit
				
					
						abc290de61
					
				
			
		
					 1 changed files with 1 additions and 4 deletions
				
			
		|  | @ -940,11 +940,8 @@ class VirtualMachineView(LoginRequiredMixin, View): | |||
|         terminated = manager.delete_vm(vm.id) | ||||
| 
 | ||||
|         if not terminated: | ||||
|             messages.error( | ||||
|                 request, | ||||
|                 'Error terminating VM %s' % (opennebula_vm_id) | ||||
|             ) | ||||
|             response['status'] = False | ||||
|             response['text'] = 'Error terminating VM %s' % (opennebula_vm_id) | ||||
|         else: | ||||
|             context = { | ||||
|                 'vm': vm_data, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue