added error msg

This commit is contained in:
Arvind Tiwari 2017-09-14 02:43:01 +05:30
parent 8ca1b13f80
commit abc290de61

View file

@ -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,