removed error details from error msg
This commit is contained in:
parent
61bf158238
commit
78423c83e3
3 changed files with 4 additions and 8 deletions
|
|
@ -1,6 +1,7 @@
|
|||
function VMTerminateStatus($container, url) {
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
VMTerminateSuccess($container, data);
|
||||
|
|
|
|||
|
|
@ -969,11 +969,11 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
|||
kwargs={'pk': opennebula_vm_id})
|
||||
)
|
||||
|
||||
terminated, err = manager.delete_vm(vm.id)
|
||||
terminated = manager.delete_vm(vm.id)
|
||||
|
||||
if not terminated:
|
||||
response['text'] = ugettext(
|
||||
'Error terminating VM') + opennebula_vm_id + '\n' + err
|
||||
'Error terminating VM') + opennebula_vm_id
|
||||
else:
|
||||
for t in range(15):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue