checking VM termination error
This commit is contained in:
parent
43300c7226
commit
8db7ead9e2
2 changed files with 9 additions and 3 deletions
|
|
@ -969,11 +969,12 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
|||
kwargs={'pk': opennebula_vm_id})
|
||||
)
|
||||
|
||||
terminated = manager.delete_vm(vm.id)
|
||||
terminated, err = manager.delete_vm(vm.id)
|
||||
|
||||
if not terminated:
|
||||
response['text'] = ugettext(
|
||||
'Error terminating VM') + opennebula_vm_id
|
||||
'Error terminating VM') + opennebula_vm_id + '\n' +
|
||||
err
|
||||
else:
|
||||
for t in range(15):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue