Corrected VM cancellation email templates
This commit is contained in:
parent
0d4c40cfa2
commit
a32c8ea467
3 changed files with 18 additions and 142 deletions
|
|
@ -891,9 +891,10 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
|||
'Error terminating VM %s' % (opennebula_vm_id)
|
||||
)
|
||||
return HttpResponseRedirect(self.get_success_url())
|
||||
|
||||
order = HostingOrder.objects.filter(vm_id=vm.id).first()
|
||||
context = {
|
||||
'vm': vm,
|
||||
'order': order,
|
||||
'base_url': "{0}://{1}".format(self.request.scheme,
|
||||
self.request.get_host()),
|
||||
'page_header': _('Virtual Machine Cancellation')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue